UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

8 lines (6 loc) 183 B
'use strict' const objectSize = require('../object/size') const size = module.exports = iterable => Array.isArray(iterable) ? iterable.length : objectSize(iterable)