Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored Sep 15, 2024
1 parent 5190534 commit 91331fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testgeneric.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const newFn = x => typeof x != 'string' ? x : new Function(x)()
function rnd_string() {return Math.random().toString(36).substring(2, 15)}
function rnd_number() {return Math.floor((Math.random() * (99999-10000))+10000)}
function count_decimals(value) {if(Math.floor(value) === value) return 0;return value.toString().split(".")[1].length || 0}
function removeElementFn(id) {try {dom[id].remove()} catch(e) {}}

function cleanFn(item, skipArray = false) {
// strings, tidy undefined, empty strings
Expand Down

0 comments on commit 91331fb

Please sign in to comment.