logo

Polyglot CheatSheet - Functions

Last Updated: 2022-04-25

Set default value inside function

JavaScript

function foo(params) {
  var settings = params || {};
}