From 08cfbade29386ce2042b026066e359a423cbd8ce Mon Sep 17 00:00:00 2001 From: zaphod1984 Date: Thu, 22 May 2014 22:14:30 +0200 Subject: [PATCH] using slice from the array prototype without instantiating a new array on every invocation --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1a8d3f5..a67992f 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ function init() { ret[name] = { get: function () { var obj = defineProps(function self() { - var str = [].slice.call(arguments).join(' '); + var str = Array.prototype.slice.call(arguments).join(' '); if (!chalk.enabled) { return str;