diff --git a/scripts/docs/dgeni-config.js b/scripts/docs/dgeni-config.js index e44d0683f..d79ca7faa 100644 --- a/scripts/docs/dgeni-config.js +++ b/scripts/docs/dgeni-config.js @@ -76,7 +76,7 @@ module.exports = function(currentVersion) { versions = []; // new version, add it to the versions list - if (currentVersion != 'nightly' && !_.contains(versions, currentVersion)) { + if (currentVersion != 'nightly' && !_.includes(versions, currentVersion)) { versions.unshift(currentVersion); } //First semver valid version is latest