Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: type,string,beginner
|
||||
|
||||
Checks if the given argument is a string. Only works for string primitives.
|
||||
|
||||
Use `typeof` to check if a value is classified as a string primitive.
|
||||
- Use `typeof` to check if a value is classified as a string primitive.
|
||||
|
||||
```js
|
||||
const isString = val => typeof val === 'string';
|
||||
@ -13,4 +13,4 @@ const isString = val => typeof val === 'string';
|
||||
|
||||
```js
|
||||
isString('10'); // true
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user