diff --git a/snippets/size.md b/snippets/size.md index 645e42f8d..0b1f53187 100644 --- a/snippets/size.md +++ b/snippets/size.md @@ -3,7 +3,7 @@ title: Size of array, object or string tags: object,array,string cover: blog_images/digital-nomad-13.jpg firstSeen: 2017-12-30T16:46:01+02:00 -lastUpdated: 2020-10-21T21:17:45+03:00 +lastUpdated: 2023-01-20T13:25:47+03:00 --- Gets the size of an array, object or string. @@ -12,7 +12,6 @@ Gets the size of an array, object or string. - Use `Array.prototype.length` property for arrays. - Use `length` or `size` value if available or number of keys for objects. - Use `size` of a [`Blob` object](https://developer.mozilla.org/en-US/docs/Web/API/Blob) created from `val` for strings. -- Split strings into array of characters with `String.prototype.split()` and return its length. ```js const size = val =>