You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { validateRUN } from 'your/dir/file.ts';
const run: string = '11.111.111-1'; // also can be '11111111-1' or '111111111'
const response: boolean = validateRUN({run});
console.log(response);
// true or false
// if detects an error, print the console log will print it, you can handle it in the catch
digito verificador aparte
import { validateRUN, IRun } from 'your/dir/file.ts';
const payload: IRun = {
run: '11.111.111', // also can be a number or string without dots
dv: '1' // also can be a number
};
const response: boolean = validateRUN(payload);
console.log(response);
// true or false
// if detects an error, print the console log will print it, you can handle it in the catch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters