Currently I am using Angular 2.0.(目前我正在使用Angular 2.0。)
I have an array as follows:(我有一个数组如下:)
var channelArray: Array<string> = ['one', 'two', 'three'];
How can I check in TypeScript whether the channelArray contains a string 'three'?(如何在TypeScript中检查channelArray是否包含字符串'three'?)
ask by code1 translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…