UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

14 lines (13 loc) 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tolower = tolower; function tolower(str) { // discuss at: https://locutus.io/powershell/tolower/ // parity verified: PowerShell 7.4 // original by: Kevin van Zonneveld (https://kvz.io) // example 1: tolower('HELLO WORLD') // returns 1: 'hello world' // example 2: tolower('Locutus') // returns 2: 'locutus' return String(str).toLowerCase(); }