@itrocks/sorted-array
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -41,3 +41,3 @@ { | ||
"types": "./sorted-array.d.ts", | ||
"version": "0.0.8" | ||
"version": "0.0.9" | ||
} |
@@ -155,3 +155,3 @@ [](https://www.npmjs.org/package/@itrocks/sorted-array) | ||
- If `compareBy` is a number, it specifies the index of each inner array's element that will be used for comparison. | ||
Example: | ||
*Example:* | ||
```js | ||
@@ -164,3 +164,3 @@ new SortedArrayBy(1, ['a', 'c', 'b'], ['r', 'd', 'a']) | ||
- If `compareBy` is a number or a string, it specifies the property name by which object elements will be compared. | ||
Example: | ||
*Example:* | ||
```js | ||
@@ -167,0 +167,0 @@ new SortedArrayBy('name', { age: 30, name: 'Henry', age: 20, name: 'Johana' }) |
21104