flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
7
VISUALIZACION/node_modules/es-abstract/helpers/isStringOrHole.js
generated
vendored
Executable file
7
VISUALIZACION/node_modules/es-abstract/helpers/isStringOrHole.js
generated
vendored
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false
|
||||
|
||||
module.exports = function isStringOrHole(item, index, arr) {
|
||||
return typeof item === 'string' || (canDistinguishSparseFromUndefined ? !(index in arr) : typeof item === 'undefined');
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue