data-cleaning-diacritic-marks

node v8.11.4
version: 2.0.0
endpointsharetweet
When diacritic marks in text make search & comparison impossible, wink-helpers comes to rescue!
// Search or comparison fails in such cases: console.log( 'Nestlé' === 'Nestle' ); // -> false // Load wink helpers and obtain normalize api for string. var normalize = require( 'wink-helpers' ).string.normalize; // Use normalize api to resolve the problem. console.log( normalize( 'Nestlé' ) ); // -> nestle console.log( normalize( 'Nestlé' ) === normalize( 'Nestle' )); // -> true
Loading…

no comments

    sign in to comment