MCPcopy Index your code
hub / github.com/NativeScript/firebase / assignKeyValue

Function assignKeyValue

packages/firebase-firestore/index.ios.ts:150–160  ·  view source on GitHub ↗
(key, val)

Source from the content-addressed store, hash-verified

148 const data = NSMutableDictionary.alloc().init();
149
150 const assignKeyValue = (key, val) => {
151 // check the map for weak object
152 if (typeof key === 'string' && key.includes('FIRFieldPath')) {
153 const ref = fp_refs.get(key)?.get?.();
154 if (ref) {
155 data.setObjectForKey(serializeItems(val), ref);
156 return;
157 }
158 }
159 data.setObjectForKey(serializeItems(val), key instanceof FieldPath ? key.native : key);
160 };
161 if (!fieldPathValue && !moreFieldsAndValues) {
162 Object.entries(dataOrField).forEach((item) => assignKeyValue(item[0], item[1]));
163 } else {

Callers 1

createDictionaryFunction · 0.85

Calls 2

serializeItemsFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…