MCPcopy
hub / github.com/vuejs/core / isMap

Function isMap

packages/shared/src/general.ts:40–41  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

38
39export const isArray: typeof Array.isArray = Array.isArray
40export const isMap = (val: unknown): val is Map<any, any> =>
41 toTypeString(val) === '[object Map]'
42export const isSet = (val: unknown): val is Set<any> =>
43 toTypeString(val) === '[object Set]'
44

Callers 5

traverseFunction · 0.90
createIterableMethodFunction · 0.90
clearFunction · 0.90
triggerFunction · 0.90
replacerFunction · 0.90

Calls 1

toTypeStringFunction · 0.85

Tested by

no test coverage detected