mirror of
https://github.com/actions/setup-python.git
synced 2026-11-02 21:15:50 +00:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 files changed
+1886006
No files matched your search
+14
@@ -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