Periksa apakah string array javascript

export const isStringArray = (array) => array.every((val) => typeof val === 'string');
Husnain Syed