mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-20 01:03:14 +00:00
Node: add util.promisify
This commit is contained in:
parent
dc306a3364
commit
caaa62d139
@ -190,6 +190,7 @@ util.isArray(object); // Returns true if the given "object" is an Array
|
|||||||
util.isRegExp(object); // Returns true if the given "object" is a RegExp. false otherwise.
|
util.isRegExp(object); // Returns true if the given "object" is a RegExp. false otherwise.
|
||||||
util.isDate(object); // Returns true if the given "object" is a Date. false otherwise.
|
util.isDate(object); // Returns true if the given "object" is a Date. false otherwise.
|
||||||
util.isError(object); // Returns true if the given "object" is an Error. false otherwise.
|
util.isError(object); // Returns true if the given "object" is an Error. false otherwise.
|
||||||
|
util.promisify(fn) // Takes a function and returns a version that returns promises.
|
||||||
|
|
||||||
util.inherits(constructor, superConstructor); // Inherit the prototype methods from one constructor into another.
|
util.inherits(constructor, superConstructor); // Inherit the prototype methods from one constructor into another.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user