|
@@ -86,6 +86,15 @@ function p5Utils__promisify(fun) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Object.prototype.toString.call([]) // "[object Array]"
|
|
|
|
|
+// Object.prototype.toString.call('') // "[object String]"
|
|
|
|
|
+// Object.prototype.toString.call({}) // "[object Object]"
|
|
|
|
|
+// Object.prototype.toString.call(null) // "[object Null]"
|
|
|
|
|
+// Object.prototype.toString.call() // "[object Undefined]"
|
|
|
|
|
+function p5Utils__isString(arg) { return '[object String]' === Object.prototype.toString.call(arg); }
|
|
|
|
|
+function p5Utils__isArray(arg) { return '[object Array]' === Object.prototype.toString.call(arg); }
|
|
|
|
|
+function p5Utils__isObject(arg) { return '[object Object]' === Object.prototype.toString.call(arg); }
|
|
|
|
|
+
|
|
|
global.p5Utils__format = p5Utils__format
|
|
global.p5Utils__format = p5Utils__format
|
|
|
global.p5Utils__parseFloatOrZero = p5Utils__parseFloatOrZero
|
|
global.p5Utils__parseFloatOrZero = p5Utils__parseFloatOrZero
|
|
|
global.p5Utils__pricePrint = p5Utils__pricePrint
|
|
global.p5Utils__pricePrint = p5Utils__pricePrint
|
|
@@ -94,3 +103,6 @@ global.p5Utils__pricePrintFormat = p5Utils__pricePrintFormat
|
|
|
global.p5Utils__clearNode = p5Utils__clearNode
|
|
global.p5Utils__clearNode = p5Utils__clearNode
|
|
|
global.p5Utils__nodeStyle = p5Utils__nodeStyle
|
|
global.p5Utils__nodeStyle = p5Utils__nodeStyle
|
|
|
global.p5Utils__promisify = p5Utils__promisify
|
|
global.p5Utils__promisify = p5Utils__promisify
|
|
|
|
|
+global.p5Utils__isString = p5Utils__isString
|
|
|
|
|
+global.p5Utils__isArray = p5Utils__isArray
|
|
|
|
|
+global.p5Utils__isObject = p5Utils__isObject
|