node js jika url adalah gambar

const isImageUrl = require('is-image-url'); isImageUrl('https://timedotcom.files.wordpress.com/2015/08/gettyimages-482708894.jpg?quality=65&strip=color&w=1100');//=> true isImageUrl('http://time.com/3981644/hong-kong-breast-assault-protest/');//=> false
Pleasant Panther