Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

map-visit

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-visit

Map `visit` over an array of objects.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is map-visit?

The map-visit npm package is designed to map over the properties of an object and apply a function to each property's value. It is particularly useful for manipulating and transforming object properties in a flexible and customizable way.

What are map-visit's main functionalities?

Mapping over object properties

This feature allows you to iterate over each property of an object and apply a function to its value. In the provided code sample, the function converts each property value to uppercase and logs it along with its key.

const mapVisit = require('map-visit');
const obj = { a: 'foo', b: 'bar' };
mapVisit(obj, (value, key) => console.log(key, value.toUpperCase()));

Other packages similar to map-visit

Keywords

FAQs

Package last updated on 09 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc