[ 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.

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

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

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

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.

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



Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref