Skip to content

Generates all possible objects (combinations of property values).

Notifications You must be signed in to change notification settings

titarenko/combine-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

combine-properties

Generates all possible objects (combinations of property values).

Installation

npm i combine-properties --save

Usage

var combine = require('combine-properties')
var result = combine({
	a: [1, 2, 3],
	b: ['a', 'b']
})
// result[0] === { a: 1, b: 'a' }
// result[1] === { a: 2, b: 'a' }
// result[2] === { a: 3, b: 'a' }
// result[3] === { a: 1, b: 'b' }
// result[4] === { a: 2, b: 'b' }
// result[5] === { a: 3, b: 'b' }

License

MIT

About

Generates all possible objects (combinations of property values).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published