René's URL Explorer Experiment


Title: Javascript’s Unicode Problem

Open Graph Title: Javascript’s Unicode Problem

X Title: Javascript’s Unicode Problem

Open Graph Description: A while ago I needed a simple string pad function, and since it’s a freakishly simple task, I just wrote a simple function: function limit(str, limit = 16, padString = "#", padPosition = "right") { const strLength = str.length; if (strLength > limit) { return str.substring(0, limit); } else if (strLength < limit) { const padRepeats

X Description: A while ago I needed a simple string pad function, and since it’s a freakishly simple task, I just wrote a simple function: function limit(str, limit = 16, padString = "#", padPosition = "right") { const strLength = str.length; if (strLength > limit) { return str.substring(0, limit); } else if (strLength < limit) { const padRepeats

Opengraph URL: https://sallar.dev/javascripts-unicode-problem/

Generator: Ghost 5.130

direct link

Domain: sallar.dev


Hey, it has json ld scripts:
{
    "@context": "https://schema.org",
    "@type": "Article",
    "publisher": {
        "@type": "Organization",
        "name": "Made by Sallar",
        "url": "https://sallar.dev/",
        "logo": {
            "@type": "ImageObject",
            "url": "https://sallar.dev/content/images/2026/05/made-by-sallar-mono-1.svg"
        }
    },
    "author": {
        "@type": "Person",
        "name": "Sallar",
        "image": {
            "@type": "ImageObject",
            "url": "https://sallar.dev/content/images/2026/05/ChatGPT-Image-Apr-23--2026--07_49_10-PM.PNG",
            "width": 1086,
            "height": 1448
        },
        "url": "https://sallar.dev/author/sallar/",
        "sameAs": []
    },
    "headline": "Javascript’s Unicode Problem",
    "url": "https://sallar.dev/javascripts-unicode-problem/",
    "datePublished": "2016-08-16T18:42:00.000Z",
    "dateModified": "2026-05-02T21:36:54.000Z",
    "keywords": "Javascript",
    "description": "A while ago I needed a simple string pad function, and since it’s a freakishly simple task, I just wrote a simple\n\nfunction:\n\n\nfunction limit(str, limit = 16, padString = "#", padPosition = "right") {\n    const strLength = str.length;\n\n    if (strLength > limit) {\n        return str.substring(0, limit);\n    } else if (strLength < limit) {\n        const padRepeats = padString.repeat(limit - strLength);\n        return (padPosition === "left") ? padRepeats + str : str + padRepeats;\n    }\n    return",
    "mainEntityOfPage": "https://sallar.dev/javascripts-unicode-problem/"
}
    

NoneIE=edge
referrerno-referrer-when-downgrade
og:site_nameMade by Sallar
og:typearticle
article:published_time2016-08-16T18:42:00.000Z
article:modified_time2026-05-02T21:36:54.000Z
article:tagJavascript
twitter:cardsummary
twitter:urlhttps://sallar.dev/javascripts-unicode-problem/
twitter:label1Written by
twitter:data1Sallar
twitter:label2Filed under
twitter:data2Javascript

Links:

https://sallar.dev
Homehttps://sallar.dev/
Bloghttps://sallar.dev/blog/
Bookshttps://sallar.dev/books/
https://sallar.dev
Javascripthttps://sallar.dev/tag/javascript/
https://sallar.dev/refactoring-buttercup-with-react-redux/
https://sallar.dev/buttercup-0-1-0-alpha-has-been-released/
https://sallar.dev/developing-for-the-real-web-mouse-wheel-programming/
https://sallar.dev/making-an-ios-app-using-javascript-vs-swift/
https://sallar.dev/promisified-arrays/
#https://sallar.dev/
Githubhttps://github.com/sallar
Mastodonhttps://mastodon.social/@sallar
#https://sallar.dev/
Makerworldhttps://makerworld.com/en/@sallar
RSShttps://sallar.dev/rss/
Ghosthttps://ghost.org/
Kyotohttps://themex.studio/kyoto/

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.