Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2017/CreateListFromArrayLike.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $TypeError = require('es-errors/type'); … … 13 13 var Type = require('./Type'); 14 14 15 var isObject = require('../helpers/isObject'); 16 15 17 var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; 16 18 … … 21 23 : defaultElementTypes; 22 24 23 if ( Type(obj) !== 'Object') {25 if (!isObject(obj)) { 24 26 throw new $TypeError('Assertion failed: `obj` must be an Object'); 25 27 }
Note:
See TracChangeset
for help on using the changeset viewer.