mirror of
https://github.com/actions/setup-python.git
synced 2025-06-13 15:57:13 +02:00
Initial pass
This commit is contained in:
14
node_modules/is-generator-fn/index.js
generated
vendored
Normal file
14
node_modules/is-generator-fn/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'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;
|
Reference in New Issue
Block a user