UNPKG

@stdlib/assert-is-collection

Version:

Test if a value is a collection.

6 lines (5 loc) 469 B
"use strict";var i=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var n=i(function(p,t){ var o=require('@stdlib/math-base-assert-is-integer/dist'),s=require('@stdlib/constants-array-max-typed-array-length/dist');function c(e){return typeof e=="object"&&e!==null&&typeof e.length=="number"&&o(e.length)&&e.length>=0&&e.length<=s}t.exports=c });var g=n();module.exports=g; /** @license Apache-2.0 */ //# sourceMappingURL=index.js.map