๐ŸŒ
Apify
docs.apify.com โ€บ api โ€บ v2
Apify API | Apify Documentation
IMPORTANT: Each API endpoint that supports pagination enforces a certain maximum value for the limit parameter, in order to reduce the load on Apify servers.
API
The Apify API is built around HTTP REST, uses predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.View API reference
Academy
Learn everything about web scraping and automation with our free courses that will turn you into an expert scraper developer.
Platform
Apify is your one-stop shop for web scraping, data extraction, and RPA. Automate anything you can do manually in a browser.
Run Actor
Runs an Actor and immediately returns without waiting for the run to finish.
๐ŸŒ
JavaScript in Plain English
javascript.plainenglish.io โ€บ how-to-get-min-or-max-of-an-array-in-javascript-and-typescript-ed1087c080cf
How To Get Min Or Max Of An Array In JavaScript And TypeScript | by Sam C. Tomasi | JavaScript in Plain English
April 23, 2024 - export class Kata { static highAndLow(numbers: string): string { const arr: number[] = numbers.split(" ").map((c) => parseInt(c)); const max: number = Math.max(...arr); const min: number = Math.min(...arr)โ€ฆ
Discussions

Maximum Integer in Js
Fun question! So in JavaScript, every value with the "number" type is represented under the hood with a 64-bit (or "double-precision") floating point number. Floating point numbers represent a value with a combination of fractions and exponents, which allows them to represent a lot of numbers (with varying degrees of precision), but at the end of the day, the value still has to fit within 64-bits somehow. So there are limits. In this case, the highest number a 64-bit float can possibly represent happens to be 1.7976931348623157e+308 (this number is stored in the constant Number.MAX_VALUE should you ever need to reference it). Your value of 1e+309 is larger than that, so the best a 64-bit float can do is call it Infinity. Under the IEEE 754 floating-point standard (which JavaScript uses), there are some special values, like NaN and Infinity. You can basically think of NaN as "something went wrong with this number" and Infinity as "this number is bigger than I can do anything useful with". Both special values sort of infect anything they touch. The result of any math with NaN is NaN. The result of (almost) any math with Infinity is Infinity. console.log(NaN * 2); // NaN console.log(Infinity - 100); // Infinity console.log(Infinity * 0); // NaN Jumping back to those varying degrees of precision, the highest integer you can represent without losing any precision happens to be a good deal smaller than 1e+308. Since everything is actually a float under the hood, you can only get up to 253 - 1 (or 9,007,199,254,740,991) before you can't trust integer math to work right anymore (that number is stored in the constant Number.MAX_SAFE_INTEGER by the way). console.log(9007199254740991 + 10); // 9007199254741000 Now, the good news for anyone who loves big numbers, is that JavaScript recently added a new primitive type, "bigint". You can make a value a BigInt by adding an n to the end, or by calling BigInt on it. const num = 7; // <-- number const big = 7n; // <-- bigint const int = BigInt(7); // <-- bigint There are two big differences between BigInts and vanilla numbers. They are integers, not floating point. This means you can't represent fractions, but you also never lose precision. They are variable-bit. They start as 64-bit, but if the value gets to large, more bits are added. So with BigInt, we can represent big numbers. let x = 10n ** 309n; // e-notation not supported with BigInt console.log(x); // 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000n And we can safely do big integer math. console.log(9007199254740991n + 10n); // 9007199254741001n But any decimal places just end up getting dropped. console.log(5n / 2n); // 2n More on reddit.com
๐ŸŒ r/learnjavascript
8
43
August 5, 2022
Map or Reduce to calculate max value from JSON
That SO solution is more elegant. It uses map to create a new array of just the values, then passes that to the built-in Math.max. Your solution is slightly more complicated and basically does just what Math.max does anyway. Edit: However, I knocked together a quick jsperf and it looks like the Math.max version is slower: http://jsperf.com/math-max-vs-ternery Personally I'd still go with Math.max as I find it easier to understand, and I really doubt there will be many situations in which this'd be a performance bottleneck. More on reddit.com
๐ŸŒ r/javascript
12
2
May 26, 2015
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Math โ€บ max
Math.max() - JavaScript | MDN
The Math.max() static method returns the largest of the numbers given as input parameters, or -Infinity if there are no parameters.
๐ŸŒ
OpenWeatherMap
openweathermap.org โ€บ current
Current weather data
{ "coord": { "lon": 37.62, "lat": 55.75 }, "weather": [ { "id": 501, "main": "Rain", "description": "pluie modรฉrรฉe", "icon": "10d" } ], "base": "stations", "main": { "temp": 295.48, "feels_like": 295.41, "temp_min": 295.15, "temp_max": 296.15, "pressure": 1018, "humidity": 60 }, "visibility": 10000, "wind": { "speed": 2, "deg": 260 }, "rain": { "1h": 1.23 }, "clouds": { "all": 100 }, "dt": 1599492273, "sys": { "type": 1, "id": 9029, "country": "RU", "sunrise": 1599446791, "sunset": 1599494929 }, "timezone": 10800, "id": 524901, "name": "Moscou", "cod": 200 } We support the following languages that you can use with the corresponded lang values: ... To use JavaScript code you can transfer callback functionName to JSONP callback.
๐ŸŒ
Megafauna
megafauna.dev โ€บ posts โ€บ max-value-array-javascript
Find the Max Value in a JavaScript Array
July 8, 2022 - Though not as simple as some other languages, there are a few ways to find the largest number in a JavaScript array. These solutions range from least-to-most convoluted. The first is preferable depending on your application's browser requirements and build process. Check it out: As the function name implies, Math.max() is handy when finding the max value within an array.
๐ŸŒ
W3Schools
w3schools.com โ€บ jsref โ€บ jsref_max_value.asp
JavaScript MAX_VALUE Property
Number.MAX_VALUE returns the largest number possible in JavaScript.
๐ŸŒ
DEV Community
dev.to โ€บ mdyasinmiah โ€บ how-many-way-to-find-max-number-in-array-on-javascript-25pk
How many way to find max number in array on Javascript. - DEV Community
March 6, 2022 - let array = [-1, 10, 30, 45, 5, 6, 89, 17]; console.log(array.reduce((element,max) => element > max ? element : max, 0)); ... Handling negative numbers could be achieved by using Number.NEGATIVE_INFINITY for initialValue (instead of 0), or even just leaving initialValue empty (as reduce() then uses the first element of the array).
Find elsewhere
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Number โ€บ MAX_SAFE_INTEGER
Number.MAX_SAFE_INTEGER - JavaScript | MDN
Number.MAX_SAFE_INTEGER represents ... The largest representable number in JavaScript is actually Number.MAX_VALUE, which is approximately 1.7976931348623157 ร— 10308....
Top answer
1 of 3
75
Fun question! So in JavaScript, every value with the "number" type is represented under the hood with a 64-bit (or "double-precision") floating point number. Floating point numbers represent a value with a combination of fractions and exponents, which allows them to represent a lot of numbers (with varying degrees of precision), but at the end of the day, the value still has to fit within 64-bits somehow. So there are limits. In this case, the highest number a 64-bit float can possibly represent happens to be 1.7976931348623157e+308 (this number is stored in the constant Number.MAX_VALUE should you ever need to reference it). Your value of 1e+309 is larger than that, so the best a 64-bit float can do is call it Infinity. Under the IEEE 754 floating-point standard (which JavaScript uses), there are some special values, like NaN and Infinity. You can basically think of NaN as "something went wrong with this number" and Infinity as "this number is bigger than I can do anything useful with". Both special values sort of infect anything they touch. The result of any math with NaN is NaN. The result of (almost) any math with Infinity is Infinity. console.log(NaN * 2); // NaN console.log(Infinity - 100); // Infinity console.log(Infinity * 0); // NaN Jumping back to those varying degrees of precision, the highest integer you can represent without losing any precision happens to be a good deal smaller than 1e+308. Since everything is actually a float under the hood, you can only get up to 253 - 1 (or 9,007,199,254,740,991) before you can't trust integer math to work right anymore (that number is stored in the constant Number.MAX_SAFE_INTEGER by the way). console.log(9007199254740991 + 10); // 9007199254741000 Now, the good news for anyone who loves big numbers, is that JavaScript recently added a new primitive type, "bigint". You can make a value a BigInt by adding an n to the end, or by calling BigInt on it. const num = 7; // <-- number const big = 7n; // <-- bigint const int = BigInt(7); // <-- bigint There are two big differences between BigInts and vanilla numbers. They are integers, not floating point. This means you can't represent fractions, but you also never lose precision. They are variable-bit. They start as 64-bit, but if the value gets to large, more bits are added. So with BigInt, we can represent big numbers. let x = 10n ** 309n; // e-notation not supported with BigInt console.log(x); // 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000n And we can safely do big integer math. console.log(9007199254740991n + 10n); // 9007199254741001n But any decimal places just end up getting dropped. console.log(5n / 2n); // 2n
2 of 3
9
JavaScript uses double-precision floating point values to store numbers. The highest number you can store in this format is 1.7976931348623157e+308 or 2^1024. Anything higher than that is rounded to Infinity, as part of the floating point spec.
๐ŸŒ
Groq
console.groq.com โ€บ docs โ€บ api-reference
API Reference - GroqDocs
An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens. ... Custom key-value pairs for storing additional information. Maximum of 16 pairs.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ JSON โ€บ stringify
JSON.stringify() - JavaScript | MDN
If this is a number, it indicates the number of space characters to be used as indentation, clamped to 10 (that is, any number greater than 10 is treated as if it were 10).
๐ŸŒ
AT&T
tradein.att.com โ€บ offer-details
Phone Trade In: Everyone Gets Our Best Trade In Deals
JavaScript is deactivated in your browser. Please activate JavaScript in order to access this website. To change the setting, use the following step-by-step guide
๐ŸŒ
Vultr Docs
docs.vultr.com โ€บ javascript โ€บ standard-library โ€บ Number โ€บ MAX_VALUE
JavaScript Number MAX_VALUE - Get Maximum Value | Vultr Docs
December 2, 2024 - The output will show the value of 1.7976931348623157e+308, which is close to the upper limit of what floating point numbers in JavaScript can represent. Use Number.MAX_VALUE to check if a number exceeds the JavaScript numerical limits.
๐ŸŒ
Google
developers.google.com โ€บ google maps platform โ€บ web services โ€บ places api โ€บ place ids
Place IDs | Places API | Google for Developers
Alternatively, you can view the place ID finder with its code in the Maps JavaScript API documentation. A place ID is a textual identifier that uniquely identifies a place. The length of the identifier may vary (there is no maximum length for place IDs).
๐ŸŒ
web.dev
web.dev โ€บ articles โ€บ largest contentful paint (lcp)
Largest Contentful Paint (LCP) | Articles | web.dev
September 4, 2025 - To measure LCP in JavaScript, you can use the Largest Contentful Paint API.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ javascript-math-max-method
JavaScript Math max() Method - GeeksforGeeks
September 30, 2024 - The Math.max() method in JavaScript returns the largest value from a set of zero or more numbers.
๐ŸŒ
Claude API Docs
platform.claude.com โ€บ docs โ€บ en โ€บ agent-sdk โ€บ typescript
Agent SDK reference - TypeScript - Claude API Docs
type AgentInput = { description: string; prompt: string; subagent_type: string; model?: "sonnet" | "opus" | "haiku"; resume?: string; run_in_background?: boolean; max_turns?: number; name?: string; team_name?: string; mode?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "plan"; isolation?: "worktree"; };