- Shogun
- Tokyo Vice S2
- Fallout
- House of the dragons
- One Piece
Livres préférés
export default function isObject (variable) { | |
return Object.prototype.toString.call(variable) === '[object Object]' | |
} |
export default function isObject (variable) { | |
return variable !== undefined && variable !== null && variable.constructor === Object | |
} |
export default function isObject (variable) { | |
return variable.constructor === Object | |
} |
export default function isObject (variable) { | |
return variable instanceof Object | |
} |
export default function isObject (variable) { | |
return typeof variable === 'object' | |
} |
import isObject from './isObject' | |
describe('isObject', () => { | |
test('String', () => { | |
expect(isObject('myString')).toEqual(false) | |
}) | |
test('Object', () => { | |
expect(isObject({ param: 'value' })).toEqual(true) | |
}) |
export default function isObject (variable) { | |
return false | |
} |