MCPcopy
hub / github.com/styletron/styletron / omitPrefixedKeys

Function omitPrefixedKeys

packages/styletron-react/src/index.tsx:570–580  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

568}
569
570function omitPrefixedKeys(source) {
571 const result = {};
572
573 for (const key in source) {
574 if (key[0] !== "$") {
575 result[key] = source[key];
576 }
577 }
578
579 return result;
580}
581
582function deepMerge(a, b) {
583 const result = assign({}, a);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected