UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

15 lines (14 loc) 494 B
/*! * CanJS - 2.3.34 * http://canjs.com/ * Copyright (c) 2018 Bitovi * Mon, 30 Apr 2018 20:56:51 GMT * Licensed MIT */ /*can@2.3.34#util/array/isArrayLike*/ define(['can/util/can'], function (can) { can.isArrayLike = function (obj) { var length = obj && typeof obj !== 'boolean' && typeof obj !== 'number' && 'length' in obj && obj.length; return typeof arr !== 'function' && (length === 0 || typeof length === 'number' && length > 0 && length - 1 in obj); }; });