📄 iterator-record.js
/home/palash/git/site/node_modules/es-abstract/helpers/records/iterator-record.js
Language: js • Lines: 12
'use strict';

var hasOwn = require('hasown');

module.exports = function isIteratorRecord(value) {
	return !!value
		&& typeof value === 'object'
		&& hasOwn(value, '[[Iterator]]')
		&& hasOwn(value, '[[NextMethod]]')
		&& hasOwn(value, '[[Done]]')
		&& typeof value['[[Done]]'] === 'boolean';
};