Skip to content
Zips data into structure (MIT)
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
tests
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

build status

annozip - Zips data into structure

´annozip´ provides utilities that make it easier to deal with ´zip´ data structures. Consider the following examples:

var zip = require('annozip');

var a = [0, 1, 2];
var b = ['a', 'b', 'c', 'd'];
var c = zip(a, b); // [[0, 'a'], [1, 'b'], [2, 'c']]

var o = {name: 'Joe', age: 123}
var ozip = zip(o); // [['name', 'Joe'], ['age', 123]]

var o2 = zip.toObject(ozip); // {name: 'Joe', age: 123}

License

MIT. See LICENSE for more details.

Something went wrong with that request. Please try again.