From 52a7cae2b60810bec53845e7aa703a0779d141df Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 20 Dec 2019 09:53:13 +0200 Subject: [PATCH] Reword size snippet --- snippets/size.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/size.md b/snippets/size.md index be2501d5d..c658adcb7 100644 --- a/snippets/size.md +++ b/snippets/size.md @@ -3,7 +3,7 @@ title: size tags: object,array,string,intermediate --- -Get size of arrays, objects or strings. +Gets the size of an array, object or string. Get type of `val` (`array`, `object` or `string`). Use `length` property for arrays. @@ -27,4 +27,4 @@ const size = val => size([1, 2, 3, 4, 5]); // 5 size('size'); // 4 size({ one: 1, two: 2, three: 3 }); // 3 -``` \ No newline at end of file +```