first commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
const obj = {} みたいなの
|
||||
arg.constructor===Object でもよさそう。
|
||||
|
||||
2020.11.08
|
||||
Object#__proto__ => Object.getPrototypeOf()
|
||||
*/
|
||||
function isObjectLiteral(arg){
|
||||
return Object.getPrototypeOf(arg)===Object.prototype;
|
||||
}
|
||||
|
||||
export default isObjectLiteral;
|
||||
Reference in New Issue
Block a user