Add some examples
From the old test suite
This commit is contained in:
@ -13,9 +13,11 @@ const isPrimitive = val => Object(val) !== val;
|
||||
|
||||
```js
|
||||
isPrimitive(null); // true
|
||||
isPrimitive(undefined); // true
|
||||
isPrimitive(50); // true
|
||||
isPrimitive('Hello!'); // true
|
||||
isPrimitive(false); // true
|
||||
isPrimitive(Symbol()); // true
|
||||
isPrimitive([]); // false
|
||||
```
|
||||
isPrimitive({}); // false
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user