openhab-addons/bundles/org.openhab.transform.javascript/conf/transform
pali 4b57ea28c8
[js-transform] Introduced support for additional parameters (#10901)
* [js-transform] Introduced support for additional parameters


Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* Added junit tests and updated readme

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* Typo fixes

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* Typo fix

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* Fixed junit test

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2021-07-31 12:42:50 +02:00
..
js/readme [js-transform] Introduced support for additional parameters (#10901) 2021-07-31 12:42:50 +02:00
readme.js [js-transform] Introduced support for additional parameters (#10901) 2021-07-31 12:42:50 +02:00
returntest.js [js-transform] Introduced support for additional parameters (#10901) 2021-07-31 12:42:50 +02:00
scale.js [js-transform] Introduced support for additional parameters (#10901) 2021-07-31 12:42:50 +02:00
sum.js [js-transform] Introduced support for additional parameters (#10901) 2021-07-31 12:42:50 +02:00

(function(i) {
    var array = i.split(" ");
    return array[array.length - 1].length;
})(input)