1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-18 11:05:16 +00:00

Node: add util.promisify

This commit is contained in:
Julien Le Coupanec 2018-02-04 15:44:46 +00:00
parent dc306a3364
commit caaa62d139

View File

@ -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.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.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.