JavaScript flatMap() method logging NaN when action is performed on element

join shbcf.ru