MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / isString

Function isString

tests/test_code/js/moment/moment.js:3616–3618  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3614 subtract = createAdder(-1, 'subtract');
3615
3616 function isString(input) {
3617 return typeof input === 'string' || input instanceof String;
3618 }
3619
3620 // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
3621 function isMomentInput(input) {

Callers 2

isMomentInputFunction · 0.85
isNumberOrStringArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected