Skip to content

kewah/for-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

for-in

Iterates an object

Installation

$ component install kewah/for-in

API

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

var lang = {
  fr: 'bonjour',
  en: 'hello',
  se: 'hej',
  de: 'hallo'
};

forIn(lang, function(value, key) {
  console.log(key, ':', value);

  if ('se' === key) {
    return false;
  }
});

>> fr : bonjour
>> en : hello
>> se : hej

License

MIT

About

Iterates an object

Resources

Stars

Watchers

Forks

Packages

No packages published