Initial commit
[yaffs-website] / node_modules / is-jpg / index.js
1 'use strict';
2 module.exports = function (buf) {
3         if (!buf || buf.length < 3) {
4                 return false;
5         }
6
7         return buf[0] === 255 &&
8                 buf[1] === 216 &&
9                 buf[2] === 255;
10 };