for-each-key

2018-10-23 admin

for-each-key是什么

什么是for-each-key,call a function with key and value for each object property

for-each-key使用教程帮助文档

for-each-key License NPM version Dependency Status Build Status Coverage

Call a function with key and value for each object property.

Install

npm i for-each-key --save

How to use?

const forEachKey = require('for-each-key');
forEachKey(console.log, {
    hello: 'world'
});
// output
'hello world'

Environments

In old node.js environments that not fully supports es2015, for-each-key could be used with:

var forEachKey = require('for-each-key/legacy');

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-43438.html

文章标题:for-each-key

回到顶部