Javascript Array Map Without Undefined Fraction