mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 16:38:23 +02:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
14
node_modules/is-generator-fn/index.js
generated
vendored
14
node_modules/is-generator-fn/index.js
generated
vendored
|
@ -1,14 +0,0 @@
|
|||
'use strict';
|
||||
const {toString} = Object.prototype;
|
||||
|
||||
module.exports = value => {
|
||||
if (typeof value !== 'function') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (value.constructor && value.constructor.name === 'GeneratorFunction') ||
|
||||
toString.call(value) === '[object GeneratorFunction]';
|
||||
};
|
||||
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = module.exports;
|
Loading…
Add table
Add a link
Reference in a new issue