angular.isNumber

Improve this Doc View Source angular.isNumber

  1. function in module ng

Determines if a reference is a Number.

This includes the "special" numbers NaN, +Infinity and -Infinity.

If you wish to exclude these then you can use the native `isFinite' method.

Usage

angular.isNumber(value);

Arguments

Param Type Details
value *

Reference to check.

Returns

boolean

True if value is a Number.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.5.11/docs/api/ng/function/angular.isNumber

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部