Skip to content

Commit

Permalink
fix helper description
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Dec 19, 2022
1 parent 28b374d commit 8d52c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/prevent-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const isValidCallback = (callback) => {
* rounded down number for number/string values or passes on for other types.
* Needed for prevent-setTimeout and prevent-setInterval
* @param {any} delay
* @returns {any} parsed delay
* @returns {any} number as parsed delay or any input type if `delay` is not parsable
*/
export const parseRawDelay = (delay) => {
return nativeIsNaN(parseInt(delay, 10)) ? delay : Math.floor(parseInt(delay, 10));
Expand Down

0 comments on commit 8d52c1b

Please sign in to comment.