MCPcopy
hub / github.com/mobxjs/mobx / isStringish

Function isStringish

packages/mobx/src/utils/utils.ts:70–79  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

68}
69
70export function isStringish(value: any): value is string | number | symbol {
71 const t = typeof value
72 switch (t) {
73 case "string":
74 case "symbol":
75 case "number":
76 return true
77 }
78 return false
79}
80
81export function isObject(value: any): value is Object {
82 return value !== null && typeof value === "object"

Callers 9

setFunction · 0.85
deletePropertyFunction · 0.85
flow.tsFile · 0.85
computed.tsFile · 0.85
interceptReadsFunction · 0.85
isObservablePropFunction · 0.85
createObservableFunction · 0.85
isComputedPropFunction · 0.85
action.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…