@stdlib/string-base-concat
v0.1.1
Published
Concatenate two strings.
Readme
concat
Concatenate two strings.
Installation
npm install @stdlib/string-base-concatUsage
var concat = require( '@stdlib/string-base-concat' );concat( str1, str2 )
Concatenates two strings.
var out = concat( 'beep', 'boop' );
// returns 'beepboop'Examples
var concat = require( '@stdlib/string-base-concat' );
var str = concat( 'beep', 'boop' );
// returns 'beepboop'
str = concat( 'foo', 'bar' );
// returns 'foobar'
str = concat( 'hello', 'world' );
// returns 'helloworld'
str = concat( '', 'abc' );
// returns 'abc'
str = concat( '123', '' );
// returns '123'Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
