@umbraco-cms/backoffice
Preparing search index...
libs/observable-api
defaultMemoization
Function defaultMemoization
defaultMemoization
(
previousValue
:
any
,
currentValue
:
any
)
:
boolean
Function
defaultMemoization
Parameters
previousValue
:
any
The previous value to compare.
currentValue
:
any
The current value to compare.
Returns
boolean
Returns true if the values are identical.
Description
Default memoization function to compare two values. This checks if the two values are of type 'object' (Array or Object) and compares them using a naive JSON string comparison. If not then it compares the two values using strict equality.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@umbraco-cms/backoffice
Loading...
defaultMemoization