From caaa62d13915c162ee3ec32711354837e657a15d Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Sun, 4 Feb 2018 15:44:46 +0000 Subject: [PATCH] Node: add util.promisify --- backend/node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/node.js b/backend/node.js index d552191..fdd9adf 100644 --- a/backend/node.js +++ b/backend/node.js @@ -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.