Node: add util.promisify

This commit is contained in:
Julien Le Coupanec 2018-02-04 15:44:46 +00:00
parent dc306a3364
commit caaa62d139
1 changed files with 1 additions and 0 deletions

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.