Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (36 loc) · 1.76 KB

powerset.md

File metadata and controls

45 lines (36 loc) · 1.76 KB

Object Agent

A javascript library for working with objects

npm build coverage deps size vulnerabilities license


powerset(input) ⇒ array

Create a power set from a set of values

Param Type
input array

Example

import { powerset } from 'object-agent';

powerset([1, 2, 3]);
// => [[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1, 2, 3]]