openhab-addons/bundles/org.openhab.transform.javascript/conf/transform/readme.js
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

4 lines
97 B
JavaScript

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