(o, type)
| 174 | return out; |
| 175 | } |
| 176 | function is(o, type) { |
| 177 | type = Str.prototype.toLowerCase.call(type); |
| 178 | if (type == "finite") { |
| 179 | return isFinite(o); |
| 180 | } |
| 181 | if (type == "array" && |
| 182 | (o instanceof Array || Array.isArray && Array.isArray(o))) { |
| 183 | return true; |
| 184 | } |
| 185 | return type == "null" && o === null || |
| 186 | type == typeof o && o !== null || |
| 187 | type == "object" && o === Object(o) || |
| 188 | objectToString.call(o).slice(8, -1).toLowerCase() == type; |
| 189 | } |
| 190 | /*\ |
| 191 | * Snap.format |
| 192 | [ method ] |
no outgoing calls
no test coverage detected