MCPcopy
hub / github.com/adobe-webplatform/Snap.svg / is

Function is

src/svg.js:176–189  ·  view source on GitHub ↗
(o, type)

Source from the content-addressed store, hash-verified

174 return out;
175}
176function 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 ]

Callers 13

SnapFunction · 0.70
svg.jsFile · 0.70
prepareRGBFunction · 0.70
packageRGBFunction · 0.70
add2groupFunction · 0.70
align.jsFile · 0.70
animation.jsFile · 0.70
extractTransformFunction · 0.70
element.jsFile · 0.70
pathToAbsoluteFunction · 0.70
attr.jsFile · 0.70
tunerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected