File tree Expand file tree Collapse file tree
packages/is-shallow-equal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33/**
44 * Returns true if the two arrays are shallow equal, or false otherwise.
55 *
6- * @param {Array } a First array to compare.
7- * @param {Array } b Second array to compare.
6+ * @param {any[] } a First array to compare.
7+ * @param {any[] } b Second array to compare.
88 *
99 * @return {boolean } Whether the two arrays are shallow equal.
1010 */
Original file line number Diff line number Diff line change @@ -8,12 +8,16 @@ var isShallowEqualArrays = require( './arrays' );
88
99var isArray = Array . isArray ;
1010
11+ /**
12+ * @typedef {{[key: string]: any} } ComparableObject
13+ */
14+
1115/**
1216 * Returns true if the two arrays or objects are shallow equal, or false
1317 * otherwise.
1418 *
15- * @param {(Array|Object) } a First object or array to compare.
16- * @param {(Array|Object) } b Second object or array to compare.
19+ * @param {any[]|ComparableObject } a First object or array to compare.
20+ * @param {any[]|ComparableObject } b Second object or array to compare.
1721 *
1822 * @return {boolean } Whether the two values are shallow equal.
1923 */
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ var keys = Object.keys;
55/**
66 * Returns true if the two objects are shallow equal, or false otherwise.
77 *
8- * @param {Object } a First object to compare.
9- * @param {Object } b Second object to compare.
8+ * @param {import('.').ComparableObject } a First object to compare.
9+ * @param {import('.').ComparableObject } b Second object to compare.
1010 *
1111 * @return {boolean } Whether the two objects are shallow equal.
1212 */
Original file line number Diff line number Diff line change 2323 },
2424 "include" : [
2525 " ./packages/i18n/**/*.js" ,
26+ " ./packages/is-shallow-equal/**/*.js" ,
2627 " ./packages/priority-queue/**/*.js" ,
2728 " ./packages/token-list/**/*.js" ,
2829 " ./packages/url/**/*.js"
You can’t perform that action at this time.
0 commit comments