refactor(es modules): modulize utils

This commit is contained in:
Azgaar 2022-06-26 21:12:10 +03:00
parent 21fc303320
commit b8ae515425
15 changed files with 51 additions and 24 deletions

View file

@ -4,6 +4,7 @@ import {unique} from "/src/utils/arrayUtils";
import {getRandomColor, getMixedColor} from "/src/utils/colorUtils";
import {rn} from "/src/utils/numberUtils";
import {rand, P, ra, rw, biased} from "@/utils/probabilityUtils";
import {trimVowels, getAdjective, abbreviate} from "@/utils/languageUtils";
window.Religions = (function () {
// name generation approach and relative chance to be selected