[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> is-shallow-equal.js (summary)

(no description)

File Size: 142 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  isShallowEqualObjects()
  isShallowEqualArrays()
  isShallowEqual()

Functions
Functions that are not part of a class:

isShallowEqualObjects(a, b)   X-Ref
Returns true if the two objects are shallow equal, or false otherwise.

param: {import('.').ComparableObject} a First object to compare.
param: {import('.').ComparableObject} b Second object to compare.
return: {boolean} Whether the two objects are shallow equal.

isShallowEqualArrays(a, b)   X-Ref
Returns true if the two arrays are shallow equal, or false otherwise.

param: {any[]} a First array to compare.
param: {any[]} b Second array to compare.
return: {boolean} Whether the two arrays are shallow equal.

isShallowEqual(a, b)   X-Ref
Returns true if the two arrays or objects are shallow equal, or false
otherwise. Also handles primitive values, just in case.

param: {unknown} a First object or array to compare.
param: {unknown} b Second object or array to compare.
return: {boolean} Whether the two values are shallow equal.



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref