UNPKG

@stdlib/assert-is-ragged-nested-array

Version:

Test if a value is a ragged nested array

6 lines (5 loc) 436 B
"use strict";var f=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var s=f(function(c,n){ var i=require('@stdlib/assert-is-array-like-object/dist');function a(r){var e,t;if(!i(r)||r.length<2)return!1;for(e=r[0].length,t=1;t<r.length;t++){if(!i(r[t]))return!1;if(r[t].length!==e)return!0}return!1}n.exports=a });var g=s();module.exports=g; /** @license Apache-2.0 */ //# sourceMappingURL=index.js.map