Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
13 lines
298 B
Plaintext
13 lines
298 B
Plaintext
'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';
|
|
};
|