Issue 7356 - Allow wrapping of function properties in snippets
As specified in the related ticket.
Caveat
Reaching Object.keys or String.fromCharCode and other public static methods is safe, but reaching Object.prototype.hasOwnProperty, as example, would break unless explicitly bound.
However, one could const {hasOwnProperty} = Object.prototype and then use hasOwnProperty.call(any, key) which would break if hasOwnProperty would be returned bound to the Object.prototype context (or any other, really).
This requires a proper documentation.
Edited by Andrea Giammarchi