Skip to content

Commit

Permalink
Merge pull request #1 from tony99nyr/isPojo_seamless-immutable_support
Browse files Browse the repository at this point in the history
Add check for Object.isFrozen() in isPojo()
  • Loading branch information
tony99nyr committed Oct 13, 2015
2 parents 57c0776 + a8c7c87 commit a279c19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export function isPojo(target) {
&&
typeof target === 'object'
&&
!Object.isFrozen(target)
&&
Object.prototype.toString.call(target) === '[object Object]'
&&
isFunction(Ctor)
Expand Down

0 comments on commit a279c19

Please sign in to comment.