@codewell/is-image

Determine if an object is an image

Usage no npm install needed!

<script type="module">
  import codewellIsImage from 'https://cdn.skypack.dev/@codewell/is-image';
</script>

README

@codewell/is-image

Determine if an object is an image

Installation

npm install @codewell/is-image

Basic usage

import isImage from '@codewell/isImage';

const img = new Image();
isImage(img); // => true
isImage({}); // => false