newify
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "newify", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Call function constructors with an array of arguments", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Purpose | ||
Calling function constructors with an array of arguments is difficult. Until [spread](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) params come to js. | ||
Calling function constructors with an array of arguments is difficult. Until [spread](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) params are fully supported in all browsers, newify does the job. | ||
@@ -25,3 +25,3 @@ For a given function constructor | ||
But since spread is not in ES5 yet... | ||
But since we can't use spread in ES5 ... | ||
@@ -28,0 +28,0 @@ NEWIFY to the rescue! |
3050