const isDigit = (c) => '0123456789'.indexOf(c) != -1;

function _search(s) {
    for (const c of s) {
        if (isDigit(c)) return true;
    }
    return false;
}