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

replace-last

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replace-last - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

4

js/replaceLast.spec.js

@@ -13,4 +13,4 @@ 'use strict';

it('number', function() {
var result = replaceLast(778, 8, 7);
expect(result).to.equal('777');
var result = replaceLast(777, 7, 8);
expect(result).to.equal('778');
});

@@ -17,0 +17,0 @@

{
"name": "replace-last",
"version": "1.2.3",
"version": "1.2.4",
"description": "JavaScript replaceLast function - Replaces last match for pattern in string with replacement",

@@ -5,0 +5,0 @@ "author": "danday74",

@@ -69,4 +69,4 @@ # replace-last

replaceLast(778, 8, 7);
// => '777'
replaceLast(777, 7, 8);
// => '778'
```

@@ -73,0 +73,0 @@

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