Skip to content

jlaustill/unwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

unwind

MongoDB's unwind for everyday javascript use.

Basic usage

npm i -S @jlaustill/unwind

const unwind = require('@jlaustill/unwind').default;

const test = [{
    a: 1,
    b: [1, 2, 3]
}];

const result = unwind(test, 'b');

console.log(result);
[ { a: 1, b: 1 }, { a: 1, b: 2 }, { a: 1, b: 3 } ]

About

MongoDB's unwind for everyday javascript use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published