Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 304 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 304 Bytes

ObjectLikeToArray

Convert object like arrays to arrays

Install

npm --save-dev olta

Use

const olta = require('olta');
var arrayLikeObject = {
  length: 4,
  '0': 'one',
  '1': 'two',
  '2': 'three',
  '3': 'four'
};

var realArray = olta(arrayLikeObject);
realArray.isArray() //true