Skip to content

mk-pmb/nullify-object-values-shallow-inplace-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nullify-object-values-shallow-inplace

Replace all values in an object with null. Can be useful to help garbage collection while still shadowing same-named prototype keys.

API

This module exports one function:

nullifyObjectValuesShallowInplace(obj)

Assigns null to each enumerable own key of obj, then returns obj.

Usage

see test/usage.mjs.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

About

Replace all values in an object with null. Can be useful to help garbage collection while still shadowing same-named prototype keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published