Typescript Declare Type Array Javascript Methods Syntax Score