rc/core/string.c#L327">source</a></span> <pre class="binding-text">(string/has-prefix? pfx str)

Tests whether `str` starts with `pfx`.</pre><a href="https://janetdocs.org/core-api/string%2fhas-prefix_q">Community Examples</a></div><hr><div class="binding"><span id="string/has-suffix?" class="binding-sym">string/has-suffix?</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/e9c6678/src/core/string.c#L338">source</a></span> <pre cla