MCPcopy
hub / github.com/tailwindlabs/tailwindcss / set

Function set

packages/tailwindcss/src/compat/plugin-functions.ts:244–254  ·  view source on GitHub ↗
(obj: any, path: string[], value: any)

Source from the content-addressed store, hash-verified

242}
243
244function set(obj: any, path: string[], value: any) {
245 for (let key of path.slice(0, -1)) {
246 if (obj[key] === undefined) {
247 obj[key] = {}
248 }
249
250 obj = obj[key]
251 }
252
253 obj[path[path.length - 1]] = value
254}

Callers 1

readFromCssFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected