Skip to content
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.

benderTheCrime/object-foreach-polyfill

Repository files navigation

object-foreach-polyfill NPM version Build Status Dependency Status Coverage percentage

A polyfill for Object.prototype.forEach

NOTE: I know it's not really a polyfill because it doesn't exist natively in JavaScript, but it's a useful utility and it's not unheard of that we will see this in a future specification.

Installation

$ npm install --save object-foreach-polyfill

Usage

var objectForEachPolyfill = require('object-foreach-polyfill');

objectForeachPolyfill(function(v, k) {
    return true;
});

License

MIT © Joe Groseclose <@benderTheCrime>

About

Not really a polyfill, but now that Object.prototype.values exists, I have high hopes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published