Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/isPrimitive/isPrimitive.js
Normal file
2
test/isPrimitive/isPrimitive.js
Normal file
@ -0,0 +1,2 @@
|
||||
const isPrimitive = val => !['object', 'function'].includes(typeof val) || val === null;
|
||||
module.exports = isPrimitive;
|
||||
Reference in New Issue
Block a user