From 24f101042a1fd6acfbebb9a5ac53106b3ea07b07 Mon Sep 17 00:00:00 2001 From: Rob Murray Date: Tue, 12 Dec 2017 10:08:30 +0000 Subject: [PATCH] Change last-of-list function name Update Last of List function name to `last` to avoid confusion. --- snippets/last-of-list.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/last-of-list.md b/snippets/last-of-list.md index 4397d5980..37536f0cb 100644 --- a/snippets/last-of-list.md +++ b/snippets/last-of-list.md @@ -3,5 +3,5 @@ Return `arr.slice(-1)[0]`. ```js -var initial = arr => arr.slice(-1)[0]; +var last = arr => arr.slice(-1)[0]; ```