diff --git a/scripts/docs/dgeni-config.js b/scripts/docs/dgeni-config.js index 5c5c239589..40f12659c1 100644 --- a/scripts/docs/dgeni-config.js +++ b/scripts/docs/dgeni-config.js @@ -60,7 +60,7 @@ module.exports = function(currentVersion, initialVersionBuild) { } // new version, add it to the versions list - if (currentVersion != 'nightly' && !_.contains(versions, currentVersion)){ + if (currentVersion != 'nightly' && !_.includes(versions, currentVersion)){ versions.unshift(currentVersion); }