findDigits.js

    0

    0

    ctions are written in the following format: function name(parameters)

    function findDigits(n) {
      return [...`${n}`].reduce((target, value) => {
        (+n % +value === 0) && target++;
    
        return target;
      }, 0);
    
    }
    fun
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.