Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

data-cleaning-diacritic-marks

node v8.17.0
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