how to check if image is available or not in javascript code example
Example: javascript check if is image
function isFileImage(file) {
return file && file['type'].split('/')[0] === 'image';
}
function isFileImage(file) {
return file && file['type'].split('/')[0] === 'image';
}