Permalink
Browse files

Use `Array#find` in build scripts

This requires a build environment with Node.js v4+.
  • Loading branch information...
mathiasbynens committed Sep 15, 2015
1 parent 5d57921 commit 48e1f4587169d54a57f4bb4693d8ee1ea5b012f5
Showing with 3 additions and 4 deletions.
  1. +1 −1 Gruntfile.js
  2. +2 −3 scripts/export-data.js
View
@@ -11,7 +11,7 @@ module.exports = function(grunt) {
'command': 'istanbul cover --report "html" --verbose --dir "coverage" "tests/tests.js"'
},
'cover-coveralls': {
'command': 'istanbul cover --verbose --dir "coverage" "tests/tests.js" && cat coverage/lcov.info | coveralls; rm -rf coverage/lcov*'
'command': 'istanbul cover --verbose --dir "coverage" "tests/tests.js" && coveralls < coverage/lcov.info|coveralls < coverage/lcov.info; rm -rf coverage/lcov*'
},
'test-narwhal': {
'command': 'echo "Testing in Narwhal..."; export NARWHAL_OPTIMIZATION=-1; narwhal "tests/tests.js"'
View
@@ -3,10 +3,9 @@ var fs = require('fs');
var packageInfo = JSON.parse(fs.readFileSync('package.json', 'utf8'));
// TODO: Use `Array#find` for this as soon as it lands in V8/Node
var unicodePackage = Object.keys(packageInfo.devDependencies).filter(function(key) {
var unicodePackage = Object.keys(packageInfo.devDependencies).find(function(key) {
return /^unicode-/.test(key);
})[0];
});
// All types of combining marks
var combiningMarks = regenerate();

0 comments on commit 48e1f45

Please sign in to comment.