(obj: any)
| 60 | obj: T |
| 61 | ): ReadonlyArray<[string, T extends object ? T[keyof T] : any]> |
| 62 | export function entries(obj: any): any { |
| 63 | if (isObservableObject(obj)) { |
| 64 | return keys(obj).map(key => [key, obj[key]]) |
| 65 | } |
| 66 | if (isObservableMap(obj)) { |
| 67 | return keys(obj).map(key => [key, obj.get(key)]) |
| 68 | } |
| 69 | if (isObservableSet(obj)) { |
| 70 | return Array.from(obj.entries()) |
| 71 | } |
| 72 | if (isObservableArray(obj)) { |
| 73 | return obj.map((key, index) => [index, key]) |
| 74 | } |
| 75 | die(7) |
| 76 | } |
| 77 | |
| 78 | export function set<V>(obj: ObservableMap<PropertyKey, V>, values: { [key: string]: V }) |
| 79 | export function set<K, V>(obj: ObservableMap<K, V>, key: K, value: V) |
no test coverage detected
searching dependent graphs…