Apply new format to snippets and template
This commit is contained in:
@ -5,11 +5,11 @@ tags: object,array,string,intermediate
|
||||
|
||||
Gets the size of an array, object or string.
|
||||
|
||||
Get type of `val` (`array`, `object` or `string`).
|
||||
Use `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 `split('')` and return its length.
|
||||
- Get type of `val` (`array`, `object` or `string`).
|
||||
- Use `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 `split('')` and return its length.
|
||||
|
||||
```js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user