1 | # d3-let
|
2 |
|
3 | [![NPM](https://badge.fury.io/js/d3-let.svg)](https://www.npmjs.com/package/d3-let)
|
4 |
|
5 | [![CircleCI](https://circleci.com/gh/quantmind/d3-let.svg?style=svg)](https://circleci.com/gh/quantmind/d3-let)
|
6 | [![devDependency Status](https://david-dm.org/quantmind/d3-let/dev-status.svg)](https://david-dm.org/quantmind/d3-let#info=devDependencies)
|
7 |
|
8 | Utilities for every day use. No dependencies, import what you need, if you need it.
|
9 |
|
10 | ## Installing
|
11 |
|
12 | If you use [NPM](https://www.npmjs.com/package/d3-let), ``npm install d3-let``. Otherwise, download the latest release.
|
13 | AMD, CommonJS, and vanilla environments are supported. In vanilla, a ``d3`` global is exported.
|
14 | You can also load directly from [unpkg](https://unpkg.com/d3-let/).
|
15 | Try [d3-let](https://runkit.com/npm/d3-let) in your browser.
|
16 |
|
17 |
|
18 | ## API
|
19 |
|
20 | ### inBrowser
|
21 |
|
22 | Constant indicating if the javascript is client side (in the browser) or server side (node).
|
23 |
|
24 |
|
25 | ### resolvedPromise (result)
|
26 |
|
27 | Return a resolved or rejected promise. The promise is rejected if ``result`` is an Error.
|