'How to merge two options [duplicate]
I have two different options in JavaScript
Option 1:
var _option = {
"displayLength": _length,
"order": [[ _order, ""+_sort+"" ]],
"paging": _pages,
"info": _info,
"searching": _search
}
Option 2:
var _button_option = {
dom: 'Bfrtip',
buttons: [
'copy',
'excel',
'print'
]
}
I want to merge two option values to the one values
Result like this:
var _option = {
"displayLength": _length,
"order": [[ _order, ""+_sort+"" ]],
"paging": _pages,
"info": _info,
"searching": _search,
dom: 'Bfrtip',
buttons: [
'copy',
'excel',
'print'
]
}
How to merge two options in JavaScript?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
