UNPKG

1.03 kBMarkdownView Raw
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
8Utilities for every day use. No dependencies, import what you need, if you need it.
9
10## Installing
11
12If you use [NPM](https://www.npmjs.com/package/d3-let), ``npm install d3-let``. Otherwise, download the latest release.
13AMD, CommonJS, and vanilla environments are supported. In vanilla, a ``d3`` global is exported.
14You can also load directly from [unpkg](https://unpkg.com/d3-let/).
15Try [d3-let](https://runkit.com/npm/d3-let) in your browser.
16
17
18## API
19
20### inBrowser
21
22Constant indicating if the javascript is client side (in the browser) or server side (node).
23
24
25### resolvedPromise (result)
26
27Return a resolved or rejected promise. The promise is rejected if ``result`` is an Error.