Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs($cookieStore#get): Clarified that undefined is returned if no cookie exists #10794

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ngCookies/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ angular.module('ngCookies', ['ng']).
* Returns the value of given cookie key
*
* @param {string} key Id to use for lookup.
* @returns {Object} Deserialized cookie value.
* @returns {Object} Deserialized cookie value, undefined if the cookie does not exist.
*/
get: function(key) {
var value = $cookies[key];
Expand Down