O'Reilly logo

Dart: Scalable Application Development by Ivo Balbaert, Sergey Akopkokhyants, Davy Mitchell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Let me finish the story of Dart to JavaScript interoperation to highlight our expertise.

The core set of Dart libraries include dart:js to help you interoperate between the Dart and JavaScript code. The dart:js library converts the original JavaScript objects, functions, and collections with the help of JsObject, JsFunction, and JsArray. It supports automatic type of conversion in both directions. Dart supports a small subset of types, transferring directly from JavaScript types. All other JavaScript types are converted to Dart types with the help of a proxy. Dart Map and Iterable collections could be translated into JavaScript collections with the jsify constructor of JsObject.

We compared jQuery, JProxy, and dart:js and cleared the Dart ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required