Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.isCoffeeFile = function(filename) {
return coffee.FILE_EXTENSIONS.some(function(ext) {
var index = filename.indexOf(ext);
return index > 0 && index + ext.length == filename.length;
});
};