Create New Array From Existing Javascript Substring Function Of String