@@ -22,7 +22,7 @@ export default (env) => {
2222 * Remove border from last summary row
2323 *
2424 * @param {Array } array - Summary rows
25- * @returns {Array } Summary rows
25+ * @returns {Array|undefined } Summary rows
2626 */
2727 filters . removeLastSummaryBorder = function ( array ) {
2828 if ( array && Array . isArray ( array ) && array . length > 0 ) {
@@ -70,7 +70,7 @@ export default (env) => {
7070 /**
7171 * Ordinal
7272 *
73- * @param {string } number - Number to get ordinal for
73+ * @param {number } number - Number to get ordinal for
7474 * @returns {string } Ordinal
7575 */
7676 filters . ordinal = ( number ) => {
@@ -138,8 +138,9 @@ export default (env) => {
138138 /**
139139 * Push item to array
140140 *
141+ * @template T
141142 * @param {Array } array - Array
142- * @param {* } item - Item to push
143+ * @param {T } item - Item to push
143144 * @returns {Array } Updated array
144145 */
145146 filters . push = ( array , item ) => {
@@ -166,6 +167,7 @@ export default (env) => {
166167 *
167168 * @param {Array } array - Array
168169 * @param {string } value - Value to check
170+ * @returns {boolean } Returns true or false
169171 */
170172 filters . includes = ( array , value ) => {
171173 return prototypeFilters . arrayOrStringIncludes ( array , value )
0 commit comments