MCPcopy
hub / github.com/autoNumeric/autoNumeric / _cloneAndMergeSettings

Method _cloneAndMergeSettings

src/AutoNumeric.js:3787–3792  ·  view source on GitHub ↗

* Return a new object with the current element settings merged with the new settings. * * @param {object} newSettings * @returns {object} * @private

(...newSettings)

Source from the content-addressed store, hash-verified

3785 * @private
3786 */
3787 _cloneAndMergeSettings(...newSettings) {
3788 const result = {};
3789 Object.assign(result, this.settings, ...newSettings);
3790
3791 return result;
3792 }
3793
3794 /**
3795 * Validate the given option object.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected