object.entries-ponyfill
`Object.entries()` ponyfill
Last updated 8 years ago by m59 .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install object.entries-ponyfill 
SYNC missed versions from official npm registry.

object.entries-ponyfill

Object.entries() ponyfill

The implementation is the same as es-shims/Object.entries, except ES3 is not supported, therefore making this package 600 bytes rather than 28000 bytes.

built-in

You should polyfill your targeted browser environments automatically with polyfill.io, rather than using a non-tailored approach like this ponyfill. Node >= 7 has Object.entries natively. You probably only need this ponyfill if your targeted environment is Node and is version < 7.

install

$ npm install object.entries-ponyfill

example

const entries = require('object.entries-ponyfill')

entries({ foo: 123, bar: 456 })
// => [ [ 'foo', 123 ], [ 'bar', 456 ] ]

Current Tags

  • 1.0.1                                ...           latest (8 years ago)

2 Versions

  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE