mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +02:00
Add default values to js doc comments
This commit is contained in:
parent
5558d19dba
commit
113941ba0d
|
@ -165,8 +165,8 @@ export const sortByAlpha = (
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {object} a
|
* @param {{ score: number }} a
|
||||||
* @param {object} b
|
* @param {{ score: number }} b
|
||||||
*/
|
*/
|
||||||
export const sortByScore = (a, b) => a.score - b.score;
|
export const sortByScore = (a, b) => a.score - b.score;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ export const isIE11 = userAgent =>
|
||||||
/**
|
/**
|
||||||
* @param {array} array
|
* @param {array} array
|
||||||
* @param {any} value
|
* @param {any} value
|
||||||
* @param {string} key
|
* @param {string} [key="value"]
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
export const existsInArray = (array, value, key = 'value') =>
|
export const existsInArray = (array, value, key = 'value') =>
|
||||||
|
|
Loading…
Reference in a new issue