COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220221629/https://github.com/lodash/lodash/blob/master/lte.js
Permalink
Cannot retrieve contributors at this time
30 lines (29 sloc)
597 Bytes
/**
* Checks if `value` is less than or equal to `other`.
*
* @since 3.9.0
* @category Lang
* @param {* } value The value to compare.
* @param {* } other The other value to compare.
* @returns {boolean } Returns `true` if `value` is less than or equal to
* `other`, else `false`.
* @see gt, gte, lt
* @example
*
* lte(1, 3)
* // => true
*
* lte(3, 3)
* // => true
*
* lte(3, 1)
* // => false
*/
function lte ( value , other ) {
if ( !( typeof value === 'string' && typeof other === 'string' ) ) {
value = + value
other = + other
}
return value <= other
}
export default lte
You can’t perform that action at this time.
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.