From f6d1d286927b0ad2417c5d82ecc70ce77c408f35 Mon Sep 17 00:00:00 2001 From: Junior Date: Mon, 2 Dec 2019 16:21:22 +0000 Subject: [PATCH] Fix assignment error & remove whitespace * Fix assignment typo where const noLength wasn't being assigned. * Remove whitespace created by Travis CI. --- snippets/checkProp.md | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/snippets/checkProp.md b/snippets/checkProp.md index 9d6197120..ca0dc0545 100644 --- a/snippets/checkProp.md +++ b/snippets/checkProp.md @@ -12,36 +12,6 @@ const checkProp = (predicate, prop) => obj => !!predicate(obj[prop]); ``` ```js - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - const lengthIs4 = checkProp(l => l === 4, 'length'); lengthIs4([]); // false lengthIs4([1,2,3,4]); // true @@ -55,8 +25,8 @@ validUserSession(session); // false session.user.active = true; validUserSession(session); // true -const noLength(l => l === undefined, 'length'); +const noLength = checkProp(l => l === undefined, 'length'); noLength([]); // false noLength({}); // true noLength(new Set()); // true -``` \ No newline at end of file +```