tru
Version:
```javascript tru(true) .then(function() { console.log('true'); }) .otherwise(function() { console.log('true'); }) .end(); ```
36 lines (29 loc) • 966 B
HTML
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
</style>
</head>
<body>
<div id="thing"></div>
<script src="../build/tru.js"></script>
<script type="text/javascript">
tru(true)
.then(function() {
console.log('true');
})
.otherwise(function() {
console.log('true');
})
.end();
</script>
</body>
</html>