From c9935786f55ec2b90215800c23b7ac1576bc39f9 Mon Sep 17 00:00:00 2001 From: Isiah Meadows Date: Wed, 24 Aug 2016 18:37:25 -0400 Subject: [PATCH] `arguments` -> `...args` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df84ff0..fc9a150 100644 --- a/README.md +++ b/README.md @@ -966,8 +966,8 @@ Most of utilities are found by native API. Others advanced functions could be ch // Native // But concat function doesn't remove duplicate items. - function merge() { - return Array.prototype.concat.apply([], arguments); + function merge(...args) { + return [].concat(...args) } ```