stick-js
Version:
Fast toolkit for functional programming in JS. Provides idioms for referentially transparent expressions, clear separation of mutable and immutable operations, object factories, function calls based on English grammar, and pipe & compose operators.
3 lines • 301 B
JavaScript
const{toString:oStr,hasOwnProperty,propertyIsEnumerable}={};export{oStr};export{hasOwnProperty};export{propertyIsEnumerable};// --- an object with a null prototype, which can therefore not be attacked through prototype
// pollution.
export const safeObject=()=>Object.create(null);export default null;