Feature/merge options #5 (#6)

*  Add dependency lodash

*  Add helper function to merge chartOptions

* Change Charts to merge options

* And renamed options data to defaultOptions
This commit is contained in:
Jakub
2016-08-21 14:04:34 +02:00
committed by GitHub
parent df7b6ec93e
commit 5258ab1a0f
8 changed files with 53 additions and 29 deletions

5
src/helpers/options.js Normal file
View File

@@ -0,0 +1,5 @@
import merge from 'lodash/fp/merge'
export function mergeOptions (obj, src) {
return merge(obj, src)
}