angular.module('MainApp')
  .controller('TaskControl', ($scope, db) => {
    db.find('open', (tasks) => {
      $scope.tasks = tasks;
      $scope.array = Array.apply(
        null, { length: tasks.length }
      ).map(Number.call, Number);
    })
  });

angular.module('MainApp')
  .controller('TaskControl', ($scope, db) => {
    db.find('open', (tasks) => {
      $scope.tasks = tasks;
    });
  });

Fix eslint errors - 3
Fix eslint errors - 3
