Sha256: ffaf718db5b2b13a4170e45e68337822292a306a4869bc36deaccbd1fbdee1e3
Contents?: true
Size: 493 Bytes
Versions: 243
Compression:
Stored size: 493 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); // https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); } return ToBoolean(Get(iterResult, 'done')); };
Version data entries
243 entries across 27 versions & 2 rubygems