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

11 lines
176 B
JavaScript

'use strict';
module.exports = buffer => {
if (!buffer || buffer.length < 3) {
return false;
}
return buffer[0] === 255 &&
buffer[1] === 216 &&
buffer[2] === 255;
};