chensenlai 10988628a0 语音房项目初始化 il y a 5 ans
..
LICENSE 10988628a0 语音房项目初始化 il y a 5 ans
README.md 10988628a0 语音房项目初始化 il y a 5 ans
index.js 10988628a0 语音房项目初始化 il y a 5 ans
package.json 10988628a0 语音房项目初始化 il y a 5 ans

README.md

for-in NPM version NPM downloads Build Status

Iterate over the own and inherited enumerable properties of an objecte, and return an object with properties that evaluate to true from the callback. Exit early by returning false. JavaScript/Node.js

Install

Install with npm:

$ npm install for-in --save

Usage

var forIn = require('for-in');

var obj = {a: 'foo', b: 'bar', c: 'baz'};
var values = [];
var keys = [];

forIn(obj, function (value, key, o) {
  keys.push(key);
  values.push(value);
});

console.log(keys);
//=> ['a', 'b', 'c'];

console.log(values);
//=> ['foo', 'bar', 'baz'];

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v, on March 27, 2016.