<!DOCTYPE html>
<html>
<head>
<script data-require="ramda@*" data-semver="0.22.1" src="https://unpkg.com/ramda@0.22.1/dist/ramda.min.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="output"></div>
<script src="script.js"></script>
</body>
</html>
const {compose, fromPairs, map, split, tail} = R
const queryString = '?page=2&pageSize=10&total=203'
const parseQs = compose(fromPairs, map(split('=')), split('&'), tail)
const result = parseQs(queryString)
console.log(result)
document.getElementById('output').innerHTML = `${JSON.stringify(result)}`
/* Styles go here */