endsWith(String, String): Boolean 文字列が指定されたサブ文字列で終了する場合は true、それ以外の場合は false を返します。 パラメーター 名前 説明 text 入力文字列 (String (文字列))。 suffix 入力文字列の末尾で検索するサフィックス文字列。 例 次の例では、「Mariano」の末尾にある「no」 (「to」ではない) を検索します。 ソース %dw 2.0 output application/json --- [ "Mariano" endsWith "no", "Mariano" endsWith "to" ] 出力 [ true, false ]
endsWith(String, String): Boolean 文字列が指定されたサブ文字列で終了する場合は true、それ以外の場合は false を返します。 パラメーター 名前 説明 text 入力文字列 (String (文字列))。 suffix 入力文字列の末尾で検索するサフィックス文字列。 例 次の例では、「Mariano」の末尾にある「no」 (「to」ではない) を検索します。 ソース %dw 2.0 output application/json --- [ "Mariano" endsWith "no", "Mariano" endsWith "to" ] 出力 [ true, false ]