MCPcopy
hub / github.com/OHIF/Viewers / isValidObject

Method isValidObject

platform/core/src/utils/objectPath.js:87–89  ·  view source on GitHub ↗

* Check if the supplied argument is a real JavaScript Object instance. * @param object {Any} The subject to be tested. * @return {Boolean} Returns "true" if the object is a real Object instance and "false" otherwise.

(object)

Source from the content-addressed store, hash-verified

85 * @return {Boolean} Returns "true" if the object is a real Object instance and "false" otherwise.
86 */
87 static isValidObject(object) {
88 return typeof object === 'object' && object !== null && object instanceof Object;
89 }
90
91 static getPathComponents(path) {
92 return typeof path === 'string' ? path.split('.') : null;

Callers 3

setMethod · 0.80
getMethod · 0.80
objectPath.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected