We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isPlainObject
The isPlainObject predicate function is another common convenience function in the JS Object domain.
isObject
@openinf/util-types
isObjectLike
const isPlainObject = ( obj ) => { return ( typeof obj === 'object' && obj !== null && obj.constructor === Object && Object.prototype.toString.call( obj ) === '[object Object]' ); };
hopefully not a misnomer due to the existence of plain old Java objects (POJOs), which are also a thing in JS
The text was updated successfully, but these errors were encountered:
Very popular published packages for some prior art:
is-plain-object
true
Object
isobject
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The
isPlainObject
predicate function is another common convenience function in the JS Object domain.isObject
predicate function from@openinf/util-types
isObjectLike
predicate function, which is often kept private/internalhopefully not a misnomer due to the existence of plain old Java objects (POJOs), which are also a thing in JS
The text was updated successfully, but these errors were encountered: