Skip to main content

Function: filled()

filled(instance): boolean

Check if instance contains any values, even defined as null. It excludes ID and LID from checked values. This can be useful to check if any data has been loaded on an instance from the store. If no attributes/relations are declared on model, it will always return true.

Parameters

instance: ModelInstance

Returns

boolean

Source

packages/core/src/model/filled.ts:12