JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" />
JavaScript
/*!
* typeahead.js 0.10.1
* https://github.com/twitter/typeahead.js
* Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT
*/
! function (a) {
var b = {
isMsie: function () {
return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : !1
},
isBlankString: function (a) {
return !a || /^\s*$/.test(a)
},
escapeRegExChars: function (a) {
return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
},
isString: function (a) {
return "string" == typeof a
},
isNumber: function (a) {
return "number" == typeof a
},
isArray: a.isArray,
isFunction: a.isFunction,
isObject: a.isPlainObject,
isUndefined: function (a) {
return "undefined" == typeof a
},
bind: a.proxy,
each: function (b, c) {
function d(a, b) {
return c(b, a)
}
a.each(b, d)
},
map: a.map,
filter: a.grep,
every: function (b, c) {
var d = !0;
return b ? (a.each(b, function (a, e) {
return (d = c.call(null, e, a, b)) ? void 0 : !1
}), !! d) : d
},
some: function (b, c) {
var d = !1;
return b ? (a.each(b, function (a, e) {
return (d = c.call(null, e, a, b)) ? !1 : void 0
}), !! d) : d
},
mixin: a.extend,
getUniqueId: function () {
var a = 0;
return function () {
return a++
}
}(),
templatify: function (b) {
function c() {
return String(b)
}
return a.isFunction(b) ? b : c
},
defer: function (a) {
setTimeout(a, 0)
},
debounce: function (a, b, c) {
...