This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ookami-san on github. | |
* I am xopo (https://keybase.io/xopo) on keybase. | |
* I have a public key ASAsZsvDZXwin1H6M15kG1MWG-Uxh_0JtJfC6Ka59eGLFQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/juliangarnier/anime/blob/master/src/index.js | |
const is = { | |
arr: a => Array.isArray(a), | |
obj: a => stringContains(Object.prototype.toString.call(a), 'Object'), | |
pth: a => is.obj(a) && a.hasOwnProperty('totalLength'), | |
svg: a => a instanceof SVGElement, | |
inp: a => a instanceof HTMLInputElement, | |
dom: a => a.nodeType || is.svg(a), | |
str: a => typeof a === 'string', |