Skip to content

Instantly share code, notes, and snippets.

View lithin's full-sized avatar

Anna McLeod lithin

View GitHub Profile
import { toClj } from 'mori';
async function getUser() {
// fetch json data from our API
const user = await fetch('http://api.com/user');
const userJson = await user.json();
// convert the object into a clojure's hashMap
return toClj(userJson);
}
import { toClj } from 'mori';
async function getUser() {
// fetch json data from our API
const user = await fetch('http://api.com/user');
const userJson = await user.json();
// convert the object into a clojure's hashMap
return toClj(userJson);
}