maqetta/maqetta — comment on commit 7dcf239660cb8b8ec325d33656f8a31e39f915ba
File: maqetta.core.client/WebContent/davinci/ve/Context.js line 2143
By jhpedemonte:

Also, can't you just do `rules[r].toString() === '[object CSSImportRuleConstructor]'`? This is similar to what Dojo does for `isArray`, `isFunction`, etc.

Actually, Dojo does something along the lines of `Object.toString.call(rules[r]) === '[object CSSImportRuleConstructor]'`; in case `toString()` has been overridden by the object.