babel/packages/babel-helpers
Ben Alpert 3cad287233 Use a helper function for React "inlining"
Either due to lower parsing costs or better type inference, this seems
to perform better than direct object inlining. (All along, the main win
was skipping a loop through props, not avoiding a function call.)
2015-11-10 21:10:06 -08:00
..
2015-10-30 23:45:42 +00:00
2015-11-05 11:10:22 +00:00
2015-10-29 20:33:49 -07:00

babel-helpers

Collection of helper functions used by Babel transforms.

Install

$ npm install babel-helpers

Usage

import * as helpers from 'babel-helpers';
import * as t from 'babel-types';

const typeofHelper = helpers.get('typeof');

t.isExpressionStatement(typeofHelper);
// true