UNPKG

@aws/pdk

Version:

All documentation is located at: https://aws.github.io/aws-pdk

16 lines (12 loc) 349 B
'use strict'; var $TypeError = require('es-errors/type'); // https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (typeof done !== 'boolean') { throw new $TypeError('Assertion failed: Type(done) is not Boolean'); } return { value: value, done: done }; };