Skip to content

is-unknown/length-of-array-like

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

length-of-array-like

Get the length of an array-like object.

Installation

npm install length-of-array-like

Usage

var len = require("length-of-array-like")

console.log(len([1, 2, 3])) // 3
console.log(len("hi")) // 2
console.log(len({length: 5})) // 5
console.log(len(function() {})) // throws error

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors