Skip to content

hkjels/object-to-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-to-array

Return an array from an array-like object.

Installation

$ component install hkjels/object-to-array

Usage

var toArray = require('object-to-array');

function outputArgs() {
  var args = toArray(arguments);
  console.log(args);
}

outputArgs('blah', 'di', 'dah', 4); // Outputs ["blah", "di", "dah", 4]

API

toArray(arguments) // Returns an array from the object passed.

License

MIT

About

Return an array from an array-like object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published