Skip to content

Commit a5e9fa0

Browse files
committed
HTTPS all the things
1 parent 78a56a3 commit a5e9fa0

File tree

749 files changed

+3398
-3398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

749 files changed

+3398
-3398
lines changed

CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ This code of conduct applies both within project spaces and in public spaces whe
1919

2020
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
2121

22-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
22+
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org), version 1.2.0, available at [https://contributor-covenant.org/version/1/2/0/](https://contributor-covenant.org/version/1/2/0/)

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Here are a few pointers that could save us from disappointment, we'll try to kee
1010

1111
1. By submitting a Pull Request you are giving Locutus permission to distribute your code under the MIT License.
1212
1. Please adhere to our [updated coding standards](/blog/2016/04/standard-coding-style/). Use `npm run lint` to check. Code should:
13-
- Follow the [JavaScript Standard Style](http://standardjs.com/), and in addition:
13+
- Follow the [JavaScript Standard Style](https://standardjs.com/), and in addition:
1414
- Not have lines longer than 100 chars
1515
- Use `//` for comments instead of `/*`
1616
- Avoid using lengthy (3+ word) comments on the same line as code
17-
1. Please credit yourself in the function's header-comment: `(original by|reimplemented by|improved by|parts by|bugfixed by|revised by|input by): Your Name (http://your.url)`
17+
1. Please credit yourself in the function's header-comment: `(original by|reimplemented by|improved by|parts by|bugfixed by|revised by|input by): Your Name (https://your.url)`
1818
1. If you are fixing bad behavior, or introducing new ones, please add an `example` that would fail before your patch, and a `result` that passes after your patch, to the function's header-comment. We use these for website documentation, as well as to generate test cases that avoid regression going forward. There should already be a few ones there if you want to see how it's done.
19-
1. If you are contributing performance upgrades, please provide proof via e.g. <http://jsperf.com>
19+
1. If you are contributing performance upgrades, please provide proof via e.g. <https://jsperf.com>
2020
1. Please keep in mind that some obvious readability improvements are sometimes unwanted for performance reasons. For example, we sometimes place similar `for` loops inside `if` and `else` conditions for performance reasons, even though the code could be half the size if we put the conditions inside a single loop.
2121

2222
## Locutus Development

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Copyright (c) 2007-2016 Kevin van Zonneveld (http://kvz.io)
2-
and Contributors (http://locutus.io/authors)
1+
Copyright (c) 2007-2016 Kevin van Zonneveld (https://kvz.io)
2+
and Contributors (https://locutus.io/authors)
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of
55
this software and associated documentation files (the "Software"), to deal in

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# languages (npm scripts is obviously very Node centric)
2424
# - Profit from better autocomplete (make <TAB><TAB>) than npm currently offers.
2525
# OSX users will have to install bash-completion
26-
# (http://davidalger.com/development/bash-completion-on-os-x-with-brew/)
26+
# (https://davidalger.com/development/bash-completion-on-os-x-with-brew/)
2727

2828
define npm_script_targets
2929
TARGETS := $(shell node -e 'for (var k in require("./package.json").scripts) {console.log(k.replace(/:/g, "-"));}')

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Locutus
22

33
<!-- badges/ -->
4-
[![Build Status](https://secure.travis-ci.org/kvz/locutus.svg?branch=master)](http://travis-ci.org/kvz/locutus "Check this project's build status on TravisCI")
4+
[![Build Status](https://secure.travis-ci.org/kvz/locutus.svg?branch=master)](https://travis-ci.org/kvz/locutus "Check this project's build status on TravisCI")
55
<!-- /badges -->
66

77
All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.
88

9-
More info at: http://locutus.io/
9+
More info at: https://locutus.io/
1010

1111
## Install
1212

_legacy/php/array/array.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function array () {
2-
// discuss at: http://locutus.io/php/array/
2+
// discuss at: https://locutus.io/php/array/
33
// original by: d3x
4-
// improved by: Brett Zamir (http://brett-zamir.me)
4+
// improved by: Brett Zamir (https://brett-zamir.me)
55
// test: skip-all
66
// example 1: array('Kevin', 'van', 'Zonneveld')
77
// returns 1: ['Kevin', 'van', 'Zonneveld']
@@ -34,9 +34,9 @@ module.exports = function array () {
3434
if (!p.Relator) {
3535
p.Relator = (function () {
3636
// Used this functional class for giving privacy to the class we are creating
37-
// Code adapted from http://www.devpro.it/code/192.html
38-
// Relator explained at http://webreflection.blogspot.com/2008/07/javascript-relator-object-aka.html
39-
// Its use as privacy technique described at http://webreflection.blogspot.com/2008/10/new-relator-object-plus-unshared.html
37+
// Code adapted from https://www.devpro.it/code/192.html
38+
// Relator explained at https://webreflection.blogspot.com/2008/07/javascript-relator-object-aka.html
39+
// Its use as privacy technique described at https://webreflection.blogspot.com/2008/10/new-relator-object-plus-unshared.html
4040
// 1) At top of closure, put: var __ = Relator.$();
4141
// 2) In constructor, put: var _ = __.constructor(this);
4242
// 3) At top of each prototype method, put: var _ = __.method(this);

_legacy/php/array/array_uintersect_assoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function array_uintersect_assoc (arr1) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/array_uintersect_assoc/
3-
// original by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/array_uintersect_assoc/
3+
// original by: Brett Zamir (https://brett-zamir.me)
44
// example 1: var $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// example 1: var $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}
66
// example 1: array_uintersect_assoc($array1, $array2, function (f_string1, f_string2){var string1 = (f_string1+'').toLowerCase(); var string2 = (f_string2+'').toLowerCase(); if (string1 > string2) return 1; if (string1 === string2) return 0; return -1;})

_legacy/php/array/array_walk_recursive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function array_walk_recursive (array, funcname, userdata) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/array_walk_recursive/
3-
// original by: Johnny Mast (http://www.phpvrouwen.nl)
2+
// discuss at: https://locutus.io/php/array_walk_recursive/
3+
// original by: Johnny Mast (https://www.phpvrouwen.nl)
44
// example 1: array_walk_recursive ({'a': 'b', 'c': {'d': 'e'}}, 'void', 'userdata')
55
// returns 1: true
66
// example 2: array_walk_recursive ('a', 'void', 'userdata')

_legacy/php/array/compact.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = function compact () {
2-
// discuss at: http://locutus.io/php/compact/
3-
// original by: Waldo Malqui Silva (http://waldo.malqui.info)
2+
// discuss at: https://locutus.io/php/compact/
3+
// original by: Waldo Malqui Silva (https://waldo.malqui.info)
44
// improved by: Jack
5-
// input by: Brett Zamir (http://brett-zamir.me)
6-
// bugfixed by: Kevin van Zonneveld (http://kvz.io)
5+
// input by: Brett Zamir (https://brett-zamir.me)
6+
// bugfixed by: Kevin van Zonneveld (https://kvz.io)
77
// example 1: var $var1 = 'Kevin'
88
// example 1: var $var2 = 'van'
99
// example 1: var $var3 = 'Zonneveld'

_legacy/php/info/getlastmod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function getlastmod () {
2-
// discuss at: http://locutus.io/php/getlastmod/
3-
// original by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/getlastmod/
3+
// original by: Brett Zamir (https://brett-zamir.me)
44
// note: Will not work on browsers which don't support document.lastModified
55
// example 1: getlastmod()
66
// returns 1: 1237610043

_legacy/php/misc/time_sleep_until.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function time_sleep_until (timestamp) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/time_sleep_until/
3-
// original by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/time_sleep_until/
3+
// original by: Brett Zamir (https://brett-zamir.me)
44
// note 1: For study purposes. Current implementation could lock up the user's browser.
55
// note 1: Expects a timestamp in seconds, so DO NOT pass in a JavaScript timestamp which are in milliseconds (e.g., new Date()) or otherwise the function will lock up the browser 1000 times longer than probably intended.
66
// note 1: Consider using setTimeout() instead.

_legacy/php/pcre/preg_grep.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function preg_grep (pattern, input, flags) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/preg_grep/
3-
// original by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/preg_grep/
3+
// original by: Brett Zamir (https://brett-zamir.me)
44
// note: If pass pattern as string, must escape backslashes, even for single quotes
55
// note: The regular expression itself must be expressed JavaScript style
66
// note: It is not recommended to submit the pattern as a string, as we may implement

_legacy/php/url/get_headers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = function get_headers (url, format) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/get_headers/
2+
// discuss at: https://locutus.io/php/get_headers/
33
// original by: Paulo Freitas
4-
// bugfixed by: Brett Zamir (http://brett-zamir.me)
4+
// bugfixed by: Brett Zamir (https://brett-zamir.me)
55
// note: This function uses XmlHttpRequest and cannot retrieve resource from different domain.
66
// note: Synchronous so may lock up browser, mainly here for study purposes.
77
// test: skip-all
8-
// example 1: get_headers('http://kvz.io/pj_test_supportfile_1.htm')[0]
8+
// example 1: get_headers('https://kvz.io/pj_test_supportfile_1.htm')[0]
99
// returns 1: 'Date: Wed, 13 May 2009 23:53:11 GMT'
1010

1111
var array_filter = require('../array/array_filter')

_legacy/php/url/get_meta_tags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = function get_meta_tags (file) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/get_meta_tags/
3-
// original by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/get_meta_tags/
3+
// original by: Brett Zamir (https://brett-zamir.me)
44
// note: This function uses XmlHttpRequest and cannot retrieve resource from different domain.
55
// note: Synchronous so may lock up browser, mainly here for study purposes.
66
// test: skip-all
7-
// example 1: get_meta_tags('http://kvz.io/pj_test_supportfile_2.htm')
7+
// example 1: get_meta_tags('https://kvz.io/pj_test_supportfile_2.htm')
88
// returns 1: {description: 'a php manual', author: 'name', keywords: 'php documentation', 'geo_position': '49.33;-86.59'}
99

1010
var file_get_contents = require('../filesystem/file_get_contents')

_legacy/php/var/is_resource.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function is_resource (handle) { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/is_resource/
3-
// original by: Brett Zamir (http://brett-zamir.me)
4-
// improved by: Luis Salazar (http://www.freaky-media.com/)
2+
// discuss at: https://locutus.io/php/is_resource/
3+
// original by: Brett Zamir (https://brett-zamir.me)
4+
// improved by: Luis Salazar (https://www.freaky-media.com/)
55
// example 1: is_resource('a')
66
// returns 1: false
77

_legacy/php/var/settype.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = function settype (vr, type) {
2-
// discuss at: http://locutus.io/php/settype/
3-
// original by: Waldo Malqui Silva (http://waldo.malqui.info)
4-
// improved by: Kevin van Zonneveld (http://kvz.io)
5-
// revised by: Brett Zamir (http://brett-zamir.me)
2+
// discuss at: https://locutus.io/php/settype/
3+
// original by: Waldo Malqui Silva (https://waldo.malqui.info)
4+
// improved by: Kevin van Zonneveld (https://kvz.io)
5+
// revised by: Brett Zamir (https://brett-zamir.me)
66
// note: Credits to Crockford also
77
// note: only works on global variables, and "vr" must be passed in as a string
88
// example 1: var $foo = '5bar'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.11",
44
"license": "MIT",
55
"description": "Locutus other languages' standard libraries to JavaScript for fun and educational purposes",
6-
"homepage": "http://locutus.io",
6+
"homepage": "https://locutus.io",
77
"author": "Kevin van Zonneveld <[email protected]>",
88
"engines": {
99
"node": ">= 0.12.0"

src/_util/util.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class Util {
3939
human: 'C',
4040
packageType: 'header file',
4141
inspiration_urls: [
42-
'<a href="http://en.cppreference.com/w/c/numeric/math">the C math.h documentation</a>',
42+
'<a href="https://en.cppreference.com/w/c/numeric/math">the C math.h documentation</a>',
4343
'<a href="https://sourceware.org/git/?p=glibc.git;a=tree;f=math;hb=HEAD">the C math.h source</a>'
4444
],
45-
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="http://en.cppreference.com/w/c/numeric/[category]/[function]">[language]\'s [function] found in the [category].h header file</a> looks like.'
45+
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="https://en.cppreference.com/w/c/numeric/[category]/[function]">[language]\'s [function] found in the [category].h header file</a> looks like.'
4646
},
4747
golang: {
4848
order: 2,
@@ -53,7 +53,7 @@ class Util {
5353
'<a href="https://golang.org/pkg/strings/">Go strings documentation</a>',
5454
'<a href="https://golang.org/src/strings/strings.go">Go strings source</a>',
5555
'<a href="https://golang.org/src/strings/example_test.go">Go strings examples source</a>',
56-
'<a href="http://gophersjs.com">GopherJS</a>'
56+
'<a href="https://gophersjs.com">GopherJS</a>'
5757
],
5858
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="https://golang.org/pkg/[category]/#[function]">[language]\'s [category].[function]</a> looks like.'
5959
},
@@ -73,21 +73,21 @@ class Util {
7373
human: 'Ruby',
7474
packageType: 'module',
7575
inspiration_urls: [
76-
'<a href="http://ruby-doc.org/core-2.2.2/Math.html">the Ruby core documentation</a>'
76+
'<a href="https://ruby-doc.org/core-2.2.2/Math.html">the Ruby core documentation</a>'
7777
],
78-
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="http://ruby-doc.org/core-2.2.2/[category].html#method-c-[function]">[language]\'s [category].[function]</a> looks like.'
78+
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="https://ruby-doc.org/core-2.2.2/[category].html#method-c-[function]">[language]\'s [category].[function]</a> looks like.'
7979
},
8080
php: {
8181
order: 5,
8282
function_title_template: '[language]\'s [function] in JavaScript',
8383
human: 'PHP',
8484
packageType: 'extension',
8585
inspiration_urls: [
86-
'<a href="http://php.net/manual/en/book.strings.php">the PHP string documentation</a>',
86+
'<a href="https://php.net/manual/en/book.strings.php">the PHP string documentation</a>',
8787
'<a href="https://github.com/php/php-src/blob/master/ext/standard/string.c#L5338">the PHP string source</a>',
8888
'<a href="https://github.com/php/php-src/blob/master/ext/standard/tests/strings/str_pad_variation1.phpt">a PHP str_pad test</a>'
8989
],
90-
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="http://php.net/manual/en/function.[functiondashed].php">[language]\'s [function]</a> looks like.',
90+
function_description_template: 'Here’s what our current JavaScript equivalent to <a href="https://php.net/manual/en/function.[functiondashed].php">[language]\'s [function]</a> looks like.',
9191
alias: [
9292
'/categories/',
9393
'/categories/array/',
@@ -367,7 +367,7 @@ class Util {
367367
}
368368

369369
// Set timezone for testing dates
370-
// Not ideal: http://stackoverflow.com/questions/8083410/how-to-set-default-timezone-in-node-js
370+
// Not ideal: https://stackoverflow.com/questions/8083410/how-to-set-default-timezone-in-node-js
371371
codez.push('process.env.TZ = \'UTC\'')
372372

373373
codez.push('var ' + 'expect' + ' = require(\'chai\').expect')

src/c/math/abs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = function abs (mixedNumber) {
2-
// discuss at: http://locutus.io/c/abs/
3-
// original by: Waldo Malqui Silva (http://waldo.malqui.info)
2+
// discuss at: https://locutus.io/c/abs/
3+
// original by: Waldo Malqui Silva (https://waldo.malqui.info)
44
// improved by: Karol Kowalski
5-
// improved by: Kevin van Zonneveld (http://kvz.io)
6-
// improved by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
5+
// improved by: Kevin van Zonneveld (https://kvz.io)
6+
// improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
77
// example 1: abs(4.2)
88
// returns 1: 4.2
99
// example 2: abs(-4.2)

src/c/math/frexp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function frexp (arg) {
2-
// discuss at: http://locutus.io/c/frexp/
3-
// original by: Oskar Larsson Högfeldt (http://oskar-lh.name/)
2+
// discuss at: https://locutus.io/c/frexp/
3+
// original by: Oskar Larsson Högfeldt (https://oskar-lh.name/)
44
// note 1: Instead of
55
// note 1: double frexp( double arg, int* exp );
66
// note 1: this is built as
@@ -36,7 +36,7 @@ module.exports = function frexp (arg) {
3636
// Object.is(n, (2 * frexp(n)[0]) * 2 ** (frexp(n)[1] - 1)) for all number values of n
3737
// Object.is(n, frexp(n)[0]) for these values of n: 0, -0, NaN, Infinity, -Infinity
3838
// Math.abs(frexp(n)[0]) is >= 0.5 and < 1.0 for any other number-type value of n
39-
// See http://en.cppreference.com/w/c/numeric/math/frexp for a more detailed description
39+
// See https://en.cppreference.com/w/c/numeric/math/frexp for a more detailed description
4040

4141
arg = Number(arg)
4242

src/golang/strings/Contains.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function Contains (s, substr) {
2-
// discuss at: http://locutus.io/golang/strings/Contains
3-
// original by: Kevin van Zonneveld (http://kvz.io)
2+
// discuss at: https://locutus.io/golang/strings/Contains
3+
// original by: Kevin van Zonneveld (https://kvz.io)
44
// example 1: Contains('Kevin', 'K')
55
// returns 1: true
66

src/golang/strings/Count.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function Count (s, sep) {
2-
// discuss at: http://locutus.io/php/printf/
3-
// original by: Kevin van Zonneveld (http://kvz.io)
4-
// input by: GopherJS (http://www.gopherjs.org/)
2+
// discuss at: https://locutus.io/php/printf/
3+
// original by: Kevin van Zonneveld (https://kvz.io)
4+
// input by: GopherJS (https://www.gopherjs.org/)
55
// example 1: Count("cheese", "e")
66
// returns 1: 3
77
// example 2: Count("five", "") // before & after each rune

src/golang/strings/Index2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function Index (s, sep) {
2-
// discuss at: http://locutus.io/golang/strings/Index
3-
// original by: Kevin van Zonneveld (http://kvz.io)
2+
// discuss at: https://locutus.io/golang/strings/Index
3+
// original by: Kevin van Zonneveld (https://kvz.io)
44
// example 1: Index('Kevin', 'K')
55
// returns 1: 0
66
// example 2: Index('Kevin', 'Z')

src/golang/strings/LastIndex.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function LastIndex (s, sep) {
2-
// discuss at: http://locutus.io/golang/strings/LastIndex
3-
// original by: Kevin van Zonneveld (http://kvz.io)
4-
// input by: GopherJS (http://www.gopherjs.org/)
2+
// discuss at: https://locutus.io/golang/strings/LastIndex
3+
// original by: Kevin van Zonneveld (https://kvz.io)
4+
// input by: GopherJS (https://www.gopherjs.org/)
55
// example 1: LastIndex('go gopher', 'go')
66
// returns 1: 3
77
// example 2: LastIndex('go gopher', 'rodent')

src/php/_helpers/_bc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function _bc () { // eslint-disable-line camelcase
2-
// discuss at: http://locutus.io/php/_helpers/_bc
2+
// discuss at: https://locutus.io/php/_helpers/_bc
33
// original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)
4-
// improved by: Brett Zamir (http://brett-zamir.me)
4+
// improved by: Brett Zamir (https://brett-zamir.me)
55
// example 1: var $bc = _bc()
66
// example 1: var $result = $bc.PLUS
77
// returns 1: '+'

0 commit comments

Comments
 (0)