Socket
Socket
Sign inDemoInstall

as

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    as

as/array and as/object. Convert easily, back and forth.


Version published
Weekly downloads
207
decreased by-4.61%
Maintainers
1
Install size
26.8 kB
Created
Weekly downloads
 

Readme

Source

Build statusCoverallsCode climateDavid DM

as

as/array and as/object. Convert easily, back and forth.

  • Brings all functional goodness of arrays to objects.
  • Brings the flexibility of objects to arrays.
  • Works well with a functional programming library, like 101.

Installation

$ npm install as

Usage

var asArray = require("as/array");
var asObject = require("as/object");

as/array

asArray(
  {a: 1, b: 2}
  );
// [ {key: "a", value: 1}
// , {key: "b", value: 2}
// ]

as/object

asObject(
  [ {key: "a", value: 1}
  , {key: "b", value: 2}
  ]);
// {a: 1, b: 2}

License

MIT © Tomek Wiszniewski.

Keywords

FAQs

Last updated on 12 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc