if (!isObject(data)){
// If data provided is not a JSON, The JMON will not be Initialized.
// This library will not handle data other than a JSON Object.
console.error(`${data} is not a JSON`);
return false;
};
Expected behavior
the constructor should return undefined if the argument is other than JSON Object
Describe the bug
Expected behavior the constructor should return
undefined
if the argument is other than JSON Object