MCPcopy
hub / github.com/tldraw/tldraw / objectMapValues

Function objectMapValues

packages/utils/src/lib/object.ts:91–95  ·  view source on GitHub ↗
(object: {
	[K in Key]: Value
})

Source from the content-addressed store, hash-verified

89 * @internal
90 */
91export function objectMapValues<Key extends string, Value>(object: {
92 [K in Key]: Value
93}): Array<Value> {
94 return Object.values(object) as Value[]
95}
96
97/**
98 * An alias for `Object.entries` that treats the object as a map and so preserves the type of the

Callers 14

object.test.tsFile · 0.90
filterHistoryMethod · 0.90
idsMethod · 0.90
constructorMethod · 0.90
applyDiffMethod · 0.90
createTLSchemaFunction · 0.90
DefaultCanvasFunction · 0.90
bindingsIndexFunction · 0.90
fetchResourcesMethod · 0.90
getNetworkDiffFunction · 0.90

Calls 1

valuesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…