mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 14:01:35 +00:00
Modify description of utils.promisify
This PR modifies the description of `utils.promisify` in order to more clearly explain what this function takes as an argument.
This commit is contained in:
@@ -190,7 +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.promisify(fn) // Takes a function whose last argument is a callback 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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user