JS: add simple variants of StringOps::EndsWith

This commit is contained in:
Asger F
2019-01-08 16:56:54 +00:00
parent b6626995cf
commit f9951f67fe
4 changed files with 80 additions and 2 deletions

View File

@@ -0,0 +1 @@
| tst.js:5:7:5:19 | A.endsWith(B) | tst.js:5:7:5:7 | A | tst.js:5:18:5:18 | B | true |

View File

@@ -0,0 +1,4 @@
import javascript
from StringOps::EndsWith endsWith
select endsWith, endsWith.getBaseString(), endsWith.getSubstring(), endsWith.getPolarity()

View File

@@ -0,0 +1,8 @@
import * as _ from 'underscore';
import * as R from 'ramda';
function test() {
if (A.endsWith(B)) {}
if (_.endsWith(A, B)) {}
if (R.endsWith(A, B)) {}
}