REFACTOR: Replace _.extend with Object.assign

This commit is contained in:
Robin Ward 2020-08-31 15:44:14 -04:00
parent 2f11457263
commit 65f6a92129
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ export default Component.extend({
const expandDetailsKey = this.expandDetailsRequestKey;
if (this.expandDetails !== expandDetailsKey) {
let headers = _.extend(
let headers = Object.assign(
{
"Request URL": this.get("model.request_url"),
"Request method": "POST"

View File

@ -305,7 +305,7 @@ export function relativeAge(date, options) {
} else if (format === "medium-with-ago") {
return relativeAgeMedium(
date,
_.extend(options, { format: "medium", leaveAgo: true })
Object.assign(options, { format: "medium", leaveAgo: true })
);
}