ClojureScript JavaScript API documentation covers JavaScript interoperation and collection behavior.

clojurescript.org/reference/javascript-api
JavaScript Interop homepage screenshot

About JavaScript Interop

This page is the JavaScript API reference on the ClojureScript site. It documents JavaScript functions defined by the implementation of ClojureScript collections. The page states that it covers functions that are officially stable and publicly consumable.

Visitors can look up how to use indexOf and lastIndexOf on sequential collections. Each entry lists syntax, parameters for the collection, search value, and optional starting index, along with a description and code examples. The functions can be called from ClojureScript using JavaScript interop or directly from JavaScript. indexOf finds the first matching index or returns -1, while lastIndexOf searches from the end by default.

This reference suits developers using ClojureScript who need to work with sequential collections alongside JavaScript. It is useful when checking exact syntax, parameters, and expected return values.

Key features

  • Documents stable JavaScript functions on ClojureScript collections
  • Explains indexOf syntax with search value and start index
  • Explains lastIndexOf syntax with search value and start index
  • Shows code examples for sequential collection searches
  • Usable from ClojureScript interop or plain JavaScript
Best for: Developers using ClojureScript who need to call collection functions from JavaScript or via interop.
Good for
  • Clear syntax and parameter definitions
  • Includes code examples with return values
  • Identifies functions as stable and public
Watch out for
  • Narrow scope limited to index search functions

JavaScript Interop at a glance

Type
Website
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

JavaScript Interop alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Programming Languages

Well-known listings from the same topic.

All 66

JavaScript Interop FAQ

What does the ClojureScript JavaScript API page document?
It documents JavaScript functions defined by ClojureScript collections that are officially stable and publicly consumable.
How do indexOf and lastIndexOf work in ClojureScript?
indexOf returns the first matching index and lastIndexOf returns the last matching index, or -1 if not found. Both take a sequential collection, a search value, and an optional starting index.
Can these functions be called from JavaScript?
Yes. The page states they can be called from ClojureScript using JavaScript interop or directly from JavaScript.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing