(object: Object)
| 1221 | |
| 1222 | // Basically checking that the object only has Object in its prototype chain |
| 1223 | export const isPlainObject = (object: Object): boolean => { |
| 1224 | const objectPrototype = Object.getPrototypeOf(object); |
| 1225 | if (!objectPrototype) return true; |
| 1226 | |
| 1227 | const objectParentPrototype = Object.getPrototypeOf(objectPrototype); |
| 1228 | return !objectParentPrototype; |
| 1229 | }; |
| 1230 | |
| 1231 | export function backendToFrontendSerializedElementMapper( |
| 1232 | element: SerializedElementBackend, |
no outgoing calls
no test coverage detected