UNPKG

@stdlib/assert-is-array-like

Version:

Test if a value is array-like.

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