jslint compliance

This commit is contained in:
Alejandro Haro
2017-06-16 09:46:49 +01:00
parent 5425a3443d
commit 33d52686cc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1468,8 +1468,8 @@ declare namespace R {
/**
* Sorts a list according to a list of comparators.
*/
sortWith<T>(fns: ((a: T, b: T) => number)[], list: T[]): T[];
sortWith<T>(fns: ((a: T, b: T) => number)[]): (list: T[]) => T[];
sortWith<T>(fns: Array<((a: T, b: T) => number)>, list: T[]): T[];
sortWith<T>(fns: Array<((a: T, b: T) => number)>): (list: T[]) => T[];
/**
* Splits a string into an array of strings based on the given
+2 -2
View File
@@ -1639,11 +1639,11 @@ class Rectangle {
() => {
let people = [
{name: 'Agy', age:33}, {name: 'Bib', age: 15}, {name: 'Cari', age: 16}
{name: 'Agy', age: 33}, {name: 'Bib', age: 15}, {name: 'Cari', age: 16}
];
R.sortWith([R.ascend(R.prop('age')), R.descend(R.prop('name'))], people);
}
};
() => {
function add(a: number, b: number) {