Skip to content

Commit

Permalink
Update packages/config/src/load.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 22, 2021
1 parent b8f78c1 commit 6735bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/config/src/load.js
Expand Up @@ -8,6 +8,7 @@ import destr from 'destr'
import * as rc from 'rc9'
import { defaultNuxtConfigFile } from './config'

// Returns the first value that isn't null or undefined (as replacement for ??)
function coalesce (...values) {
const value = values.shift()
if (!values.length || (value !== null && value !== undefined)) {
Expand Down

0 comments on commit 6735bf0

Please sign in to comment.