1 define(['./kindOf', './GLOBAL'], function (kindOf, GLOBAL) {
4 * Convert array-like object into array
12 if ( val.length == null || kind === 'String' || kind === 'Function' || kind === 'RegExp' || val === GLOBAL ) {
13 //string, regexp, function have .length but user probably just want
14 //to wrap value into an array..
15 ret[ret.length] = val;
17 //window returns true on isObject in IE7 and may have length
18 //property. `typeof NodeList` returns `function` on Safari so
19 //we can't use it (#58)