Switch remaining modules to ES6
This commit is contained in:
parent
baeb02ebb7
commit
36b8878c14
2 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const _ = require('lodash')
|
||||
import _ from 'lodash'
|
||||
|
||||
module.exports = function findColor(colors, color) {
|
||||
export default function findColor(colors, color) {
|
||||
return _.get(colors, color, color)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
const _ = require('lodash')
|
||||
const defineClass = require('../util/defineClass')
|
||||
const findColor = require('../util/findColor')
|
||||
import _ from 'lodash'
|
||||
import defineClass from './defineClass'
|
||||
import findColor from './findColor'
|
||||
|
||||
module.exports = function (colors, colorPool) {
|
||||
export default function (colors, colorPool) {
|
||||
if (_.isArray(colors)) {
|
||||
colors = _(colors).flatMap(color => {
|
||||
if (_.isString(color)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue