import has from 'lodash/has';
is better because lodash holds all it’s functions in a single file, so rather than import the whole ‘lodash’ library at 100k, it’s better to just import lodash’s has
function which is maybe 2k.
More Related Contents:
- Unable to access React instance (this) inside event handler [duplicate]
- Why does babel rewrite imported function call to (0, fn)(…)?
- Call async/await functions in parallel
- Importing lodash into angular2 + typescript application
- babel-loader jsx SyntaxError: Unexpected token [duplicate]
- ES6 exporting/importing in index file
- How to do a deep comparison between 2 objects with lodash?
- using lodash .groupBy. how to add your own keys for grouped output?
- Lodash remove duplicates from array
- Is there any one-line analogy in ES6 for ES5 `module.exports = require(‘./inner.js’)`?
- Convert ES6 Iterable to Array
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- Arrow Function syntax not working with webpack?
- Replacing objects in array
- Webpack babel 6 ES6 decorators
- Get list of duplicate objects in an array of objects
- Unable to use Arrow functions inside React component class [duplicate]
- How to filter keys of an object with lodash?
- ES6 `export * from import`?
- Merge Array of Objects by Property using Lodash
- Importing CSS files in Isomorphic React Components
- Filtering object properties based on value
- Split JavaScript array in chunks using Lodash
- How to remove global “use strict” added by babel
- Find property by name in a deep object
- How to Import a Single Lodash Function?
- Is there a way to render multiple React components in the React.render() function?
- Lodash create collection from duplicate object keys
- How to run Node.js app with ES6 features enabled?
- Javascript: Sort array of arrays by second element in each inner array