|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
459 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var $TypeError = require('es-errors/type');
|
|---|
| 4 | var isObject = require('es-object-atoms/isObject');
|
|---|
| 5 |
|
|---|
| 6 | var Get = require('./Get');
|
|---|
| 7 | var ToBoolean = require('./ToBoolean');
|
|---|
| 8 |
|
|---|
| 9 | // https://262.ecma-international.org/6.0/#sec-iteratorcomplete
|
|---|
| 10 |
|
|---|
| 11 | module.exports = function IteratorComplete(iterResult) {
|
|---|
| 12 | if (!isObject(iterResult)) {
|
|---|
| 13 | throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
|
|---|
| 14 | }
|
|---|
| 15 | return ToBoolean(Get(iterResult, 'done'));
|
|---|
| 16 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.