JSFiddle - React, Tailwind, and code Playground

by Andrey Gershun

HTML

<script src="http://alasql.org/console/alasql.min.js"></script>
<span id="res"></span>

JavaScript

var a = ["foo","fool","cool","god"];
    var str = "%oo%";

    var res = alasql('SELECT COLUMN * FROM [?] WHERE [0] LIKE ?',[a, str]);
 


document.getElementById("res").textContent = JSON.stringify(res);