Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
259 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | export function not(pred: Function, thisArg: any): Function {
|
---|
| 2 | function notPred(): any {
|
---|
| 3 | return !((<any> notPred).pred.apply((<any> notPred).thisArg, arguments));
|
---|
| 4 | }
|
---|
| 5 | (<any> notPred).pred = pred;
|
---|
| 6 | (<any> notPred).thisArg = thisArg;
|
---|
| 7 | return notPred;
|
---|
| 8 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.