Skip to content

Commit

Permalink
add isObjectNative
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Jan 19, 2020
1 parent e8caec8 commit 52fe14c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const isFloat = e => e === +e

export const isObject = e => typeof e === 'object' && !isNull(e)

export const isObjectNative = e => Object.prototype.toString.call(e) === '[object Object]'

export const isMergeableObject = e => isObject(e) && !isDate(e) && !isRegExp(e)

export const isString = e => typeof e === 'string'
Expand Down Expand Up @@ -319,6 +321,9 @@ export const is = {
object: isObject,
obj: isObject,

isObjectNative,
objectNative: isObjectNative,

isMergeableObject,
mergeableObject: isMergeableObject,
isMergeable: isMergeableObject,
Expand Down

0 comments on commit 52fe14c

Please sign in to comment.