mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Update assets/scripts/utils/is.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
This commit is contained in:
@@ -16,7 +16,7 @@ const isObject = x => (x && typeof x === 'object')
|
||||
* @return {boolean}
|
||||
*/
|
||||
|
||||
const isFunction = x => x instanceof Function
|
||||
const isFunction = x => typeof x === 'function'
|
||||
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user