Functional Programming, JavaScript.
short-circuit and return ‘Unknown’. We do this to avoid all of the null checks. All we need to do is tweak our API based on Optional: function Customer(person) { var _person = person; this.getPerson = function() { return Optional.ofNullable(_person); } } And that’s it! Functional programming is a