biofriction-wp-theme/node_modules/is-jpg/index.js

11 lines
176 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'use strict';
module.exports = buffer => {
if (!buffer || buffer.length < 3) {
return false;
}
return buffer[0] === 255 &&
buffer[1] === 216 &&
buffer[2] === 255;
};