UNPKG

doff

Version:

A powerful tool to free your objects and arrays from unwanted content

12 lines (7 loc) 223 B
'use strict'; // Load modules const isLength = require('./isLength'); // Define exports module.exports = function isArrayLike(value) { return value != null && typeof value !== 'function' && isLength(value.length); };