mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Remove semicolons.
This commit is contained in:
8
join.js
8
join.js
@@ -1,5 +1,5 @@
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
const nativeJoin = Array.prototype.join;
|
||||
const nativeJoin = Array.prototype.join
|
||||
|
||||
/**
|
||||
* Converts all elements in `array` into a string separated by `separator`.
|
||||
@@ -11,11 +11,11 @@ const nativeJoin = Array.prototype.join;
|
||||
* @returns {string} Returns the joined string.
|
||||
* @example
|
||||
*
|
||||
* join(['a', 'b', 'c'], '~');
|
||||
* join(['a', 'b', 'c'], '~')
|
||||
* // => 'a~b~c'
|
||||
*/
|
||||
function join(array, separator) {
|
||||
return array == null ? '' : nativeJoin.call(array, separator);
|
||||
return array == null ? '' : nativeJoin.call(array, separator)
|
||||
}
|
||||
|
||||
export default join;
|
||||
export default join
|
||||
|
||||
Reference in New Issue
Block a user