is-data-url
Check if the given value is a Data URL.
Main
dist/├── is-data-url.js (UMD)├── is-data-url.min.js (UMD, compressed)├── is-data-url.common.js (CommonJS, default)└── is-data-url.esm.js (ES Module)
Install
npm install is-data-url
Usage
Syntax
;
-
value
- Type:
*
- The value to check.
- Type:
-
(return value)
- Type:
Boolean
- Returns
true
if the given value is a Data URL, elsefalse
.
- Type:
Examples
; ;// => true ;// => false