ler takes the value of a DOM element&#39;s property and calls a function with it as the argument.</p>
<p>This helper function is provided to help decouple the browser&#39;s event model from application code.</p>
<pre><code class="lang-javascript">// standalone usage
document.body.onclick = m.withAttr(&quot;title&quot;, function(value) {
    console.log(value) // logs the title of the &lt;body&gt; element when clicked
})
</code></pre>
<p>Typically, <code>m.withAttr()</code> can be used in Mithril component v