Answers for "javascript check if is image"

1

javascript check image src

if (img.getAttribute('src') === 'on.png')
Posted by: Guest on March-01-2020
0

javascript check if is image

function isFileImage(file) {
    return file && file['type'].split('/')[0] === 'image';
}
Posted by: Guest on January-27-2021

Code answers related to "javascript check if is image"

Code answers related to "Javascript"

Browse Popular Code Answers by Language