Summary and comparison of methods of JavaScript String objects and Array objects
Common to String and Array | String unique | Exclusive to Array |
---|---|---|
concat | charAt | copyWithin |
indexOf | charCodeAt | entries |
includes | endsWith | every |
lastIndexOf | fromCharCode | fill |
slice | match | filter |
repeat | find | |
replace | findIndex | |
replaceAll | forEach | |
search | from | |
split | isArray | |
startsWith | join | |
substr | keys | |
substring | map | |
toLowerCase | pop | |
toUpperCase | push | |
trim | reduce | |
toLocaleLowerCase | reduceRight | |
toLocaleUpperCase | reverse | |
shift | ||
some | ||
sort | ||
splice | ||
unshift |
Newbie tutorial link:
→JavaScript String Object
→JavaScript Array Object